function DrushFileCache::get

6.x cache.inc DrushFileCache::get($cid)
5.x cache.inc DrushFileCache::get($cid)

Return data from the persistent cache.

Parameters

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

Return value

The cache or FALSE on failure.

Overrides DrushCacheInterface::get

File

includes/cache.inc, line 319
Drush cache API

Class

DrushFileCache
Default cache implementation.

Code

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