You are here

protected function MemcacheStorage::addCacheID in Memcache Storage 7

Add cache ID to the list of cache IDs which are used in the cache bin.

Parameters

$cid: Cache ID.

$created: Timestamp when cache item was created.

File

./memcache_storage.inc, line 334
Provides class for memcached data handling.

Class

MemcacheStorage
Class handles memcached cache objects.

Code

protected function addCacheID($cid, $created) {
  if (!isset($this->cache_ids[$cid])) {
    $this->cache_ids[$cid] = $created;
    MemcacheStorageAPI::set('memcache_storage_cids', $this->cache_ids, CACHE_PERMANENT, $this
      ->cacheBinName());
  }
}