You are here

protected function MemcacheStorage::increaseBinIndex in Memcache Storage 7

Increase cache bin index. This operation changes all memcache keys in selected cache bin so we simulate cache flush for it.

1 call to MemcacheStorage::increaseBinIndex()
MemcacheStorage::clear in ./memcache_storage.inc
Implements DrupalCacheInterface::clear().

File

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

Class

MemcacheStorage
Class handles memcached cache objects.

Code

protected function increaseBinIndex() {
  $currentIndex = $this
    ->getBinIndex();
  $indexes =& drupal_static('memcache_storage_bin_indexes', array());
  $indexes[$this->bin] = ++$currentIndex;
  MemcacheStorageAPI::set('memcache_storage_bin_indexes', $indexes, 0);
}