function Redis_Cache::get in Redis 7.2
Same name and namespace in other branches
- 7.3 lib/Redis/Cache.php \Redis_Cache::get()
Returns data from the persistent cache.
Data may be stored as either plain text or as serialized data. cache_get() will automatically return unserialized objects and arrays.
Parameters
$cid: The cache ID of the data to retrieve.
Return value
The cache or FALSE on failure.
Overrides DrupalCacheInterface::get
File
- lib/
Redis/ Cache.php, line 17
Class
- Redis_Cache
- Cache backend for Redis module.
Code
function get($cid) {
return $this->backend
->get($cid);
}