protected function FileCache::getFilePath

8.0.x FileCache.php protected FileCache::getFilePath($cid)
7.x FileCache.php protected FileCache::getFilePath($cid)
master FileCache.php protected FileCache::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 FileCache::getFilePath()
FileCache::clear in lib/Drush/Cache/FileCache.php
Expire data from the cache. If called without arguments, expirable entries will be cleared from all known cache bins.
FileCache::getMultiple in lib/Drush/Cache/FileCache.php
Return data from the persistent cache when given an array of cache IDs.
FileCache::set in lib/Drush/Cache/FileCache.php
Store data in the persistent cache.

File

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

Namespace

Drush\Cache

Class

FileCache
Default cache implementation.

Code

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