public function MemCacheDrupal::get in Memcache API and Integration 7
Implements DrupalCacheInterface::get().
Overrides DrupalCacheInterface::get
1 call to MemCacheDrupal::get()
- MemCacheDrupal::valid in ./
memcache.inc - Checks if a retrieved cache item is valid.
File
- ./
memcache.inc, line 62
Class
- MemCacheDrupal
- Implementation of cache.inc with memcache logic included
Code
public function get($cid) {
// Clean up.
$this
->garbageCollection();
$cache = dmemcache_get($cid, $this->bin, $this->memcache);
return $this
->valid($cid, $cache) ? $cache : FALSE;
}