public function JsProxyCache::get in JS Callback Handler 7.2
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
- src/
JsProxyCache.php, line 96
Class
- JsProxyCache
- JS custom cache handler.
Code
public function get($cid) {
$cache = $this->backend
->get($cid);
if (!$cache) {
$this
->doFullBootstrap();
}
return $cache;
}