You are here

protected function FileCache::getFilename in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php \Doctrine\Common\Cache\FileCache::getFilename()

Parameters

string $id:

Return value

string

6 calls to FileCache::getFilename()
FileCache::doDelete in vendor/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php
Deletes a cache entry.
FilesystemCache::doContains in vendor/doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php
Tests if an entry exists in the cache.
FilesystemCache::doFetch in vendor/doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php
Fetches an entry from the cache.
FilesystemCache::doSave in vendor/doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php
Puts data into the cache.
PhpFileCache::doSave in vendor/doctrine/cache/lib/Doctrine/Common/Cache/PhpFileCache.php
Puts data into the cache.

... See full list

File

vendor/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php, line 125

Class

FileCache
Base file cache driver.

Namespace

Doctrine\Common\Cache

Code

protected function getFilename($id) {
  return $this->directory . DIRECTORY_SEPARATOR . implode(str_split(hash('sha256', $id), 2), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . preg_replace($this->disallowedCharacterPatterns, $this->replacementCharacters, $id) . $this->extension;
}