function FileCache::get

8.0.x FileCache.php FileCache::get($cid)
7.x FileCache.php FileCache::get($cid)
master FileCache.php FileCache::get($cid)

Return data from the persistent cache.

Parameters

string $cid: The cache ID of the data to retrieve.

Return value

The cache or FALSE on failure.

Overrides CacheInterface::get

File

lib/Drush/Cache/FileCache.php, line 36
Definition of Drush\Cache\FileCache.

Namespace

Drush\Cache

Class

FileCache
Default cache implementation.

Code

function get($cid) {
  $cids = array($cid);
  $cache = $this->getMultiple($cids);
  return reset($cache);
}