get() public method

Finds and returns data from the cache.
public get ( string $entryIdentifier ) : mixed
$entryIdentifier string Something which identifies the cache entry - depends on concrete cache
return mixed
コード例 #1
0
 /**
  * Fetches an entry from the cache.
  *
  * @param string $id The id of the cache entry to fetch.
  * @return mixed The cached data or FALSE, if no cache entry exists for the given id.
  */
 public function fetch($id)
 {
     return $this->cache->get($this->convertCacheIdentifier($id));
 }
コード例 #2
0
 /**
  * Returns the data of the current cache entry pointed to by the cache entry
  * iterator.
  *
  * @return mixed
  * @api
  */
 public function current()
 {
     return $this->frontend->get($this->backend->key());
 }