You are here

protected function FileSystemBackend::getFilename in File Cache 8

Returns the filename for the given cache ID.

Parameters

string $cid: The cache ID.

Return value

string The filename.

3 calls to FileSystemBackend::getFilename()
FileSystemBackend::delete in src/Cache/FileSystemBackend.php
Deletes an item from the cache.
FileSystemBackend::get in src/Cache/FileSystemBackend.php
Returns data from the persistent cache.
FileSystemBackend::set in src/Cache/FileSystemBackend.php
Stores data in the persistent cache.

File

src/Cache/FileSystemBackend.php, line 306

Class

FileSystemBackend
A cache backend that stores cache items as files on the file system.

Namespace

Drupal\filecache\Cache

Code

protected function getFilename($cid) {
  return $this->path . $this
    ->normalizeCid($cid);
}