function MemcacheStorage::__construct in Memcache Storage 7
Constructs a new MemcacheStorage object.
File
- ./
memcache_storage.inc, line 46 - Provides class for memcached data handling.
Class
- MemcacheStorage
- Class handles memcached cache objects.
Code
function __construct($bin) {
$this->bin = $bin;
// Prefetch data with information about wildcards and stored cache ids
// in the current cache bin.
$data = MemcacheStorageAPI::getMultiple(array(
'memcache_storage_wildcards',
'memcache_storage_cids',
), $this
->cacheBinName());
$this->wildcards = !empty($data['memcache_storage_wildcards']) ? $data['memcache_storage_wildcards'] : array();
$this->cache_ids = !empty($data['memcache_storage_cids']) ? $data['memcache_storage_cids'] : array();
}