/** * @param \Psr\Cache\CacheItemInterface $item * @return mixed */ protected function driverRead(CacheItemInterface $item) { $data = zend_disk_cache_fetch($item->getKey()); if ($data === false) { return null; } return $data; }
protected function _get($key) { $data = zend_disk_cache_fetch($this->key($key)); if ($data === null) { return self::NOT_FOUND; } return $data; }
/** * Fetch multiple items from Zend Data Disk Cache * * @param array $internalKeys * @return array All found items * @throws Exception\RuntimeException */ protected function zdcFetchMulti(array $internalKeys) { $items = zend_disk_cache_fetch($internalKeys); if ($items === false) { throw new Exception\RuntimeException("zend_disk_cache_fetch(<array>) failed"); } return $items; }
/** * Fetch data * * @param string $id Cache id */ protected function _fetch($id) { return zend_disk_cache_fetch($this->_options['namespace'] . '::' . $id); }
/** * {@inheritdoc} */ public function has($key) { return zend_disk_cache_fetch($key) !== false; }
/** * Get a cache variable * * Retrieve a variable from the cache and return it's * value to the user. * * @param string $name The name of the cache variable to retrieve. * * @return mixed The value of the retrieved variable or false if * variable isn't found. */ public function get($name) { return zend_disk_cache_fetch($name); }
public function get($key) { $safeKey = $this->makeKey($key); $ret = @zend_disk_cache_fetch($safeKey); return $ret; }
/** * {@inheritdoc} */ public function get($key) { return zend_disk_cache_fetch($key); }
/** * Read datas with $uid key * @param mixed $uid * @return mixed */ public function read($uid) { return zend_disk_cache_fetch($uid); }