PHP Класс Airship\Engine\Cache\File

Caches data in the filesystem.
Наследование: implements CacheInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$baseDir string

Открытые методы

Метод Описание
__construct ( string $baseDir ) File constructor.
delete ( string $key ) : boolean Delete a cache entry
get ( string $key ) : null | mixed Get a cache entry
getRelativeHash ( string $preHash, boolean $asString = false ) : string | array Get a relative BLAKE2b hash of an input. Formatted as two lookup directories followed by a cache entry. 'hh/hh/hhhhhhhh.
set ( string $key, $value ) : boolean Set a cache entry

Защищенные методы

Метод Описание
getRelativePath ( string $key ) : string Get the relative path

Описание методов

__construct() публичный Метод

File constructor.
public __construct ( string $baseDir )
$baseDir string The base directory

delete() публичный Метод

Delete a cache entry
public delete ( string $key ) : boolean
$key string
Результат boolean

get() публичный Метод

Get a cache entry
public get ( string $key ) : null | mixed
$key string
Результат null | mixed

getRelativeHash() публичный статический Метод

..'
public static getRelativeHash ( string $preHash, boolean $asString = false ) : string | array
$preHash string The cache identifier (will be hashed)
$asString boolean Return a string?
Результат string | array

getRelativePath() защищенный Метод

Get the relative path
protected getRelativePath ( string $key ) : string
$key string
Результат string

set() публичный Метод

Set a cache entry
public set ( string $key, $value ) : boolean
$key string
$value
Результат boolean

Описание свойств

$baseDir защищенное свойство

protected string $baseDir
Результат string