protected function DrushFileCache::getFilePath

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

Converts a cache id to a full path.

Parameters

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

Return value

The full path to the cache file.

3 calls to DrushFileCache::getFilePath()
DrushFileCache::clear in includes/cache.inc
Expire data from the cache. If called without arguments, expirable entries will be cleared from all known cache bins.
DrushFileCache::getMultiple in includes/cache.inc
Return data from the persistent cache when given an array of cache IDs.
DrushFileCache::set in includes/cache.inc
Store data in the persistent cache.

File

includes/cache.inc, line 420
Drush cache API

Class

DrushFileCache
Default cache implementation.

Code

protected function getFilePath($cid) {
  return $this->directory . '/' . str_replace(array(':'), '.', $cid) . self::EXTENSION;
}