You are here

public function MemcacheStorage::cacheBinName in Memcache Storage 7

Returns a cache bin name with namespace prefix.

This small feature allows to manage flushing of entire cache bin. To flush a cache bin we only need to change this number (bin index).

8 calls to MemcacheStorage::cacheBinName()
MemcacheStorage::addCacheID in ./memcache_storage.inc
Add cache ID to the list of cache IDs which are used in the cache bin.
MemcacheStorage::clear in ./memcache_storage.inc
Implements DrupalCacheInterface::clear().
MemcacheStorage::getMultiple in ./memcache_storage.inc
Implements DrupalCacheInterface::getMultiple().
MemcacheStorage::removeCacheID in ./memcache_storage.inc
Remove cache ID from the list of cache IDs which are used in the cache bin.
MemcacheStorage::removeCacheIDs in ./memcache_storage.inc
Remove list of cache IDs from the list of cache IDs which are used in the cache bin.

... See full list

File

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

Class

MemcacheStorage
Class handles memcached cache objects.

Code

public function cacheBinName() {
  return $this->bin . '_' . $this
    ->getBinIndex();
}