PHP Класс Bluz\Cache\Adapter\FileBase

Автор: murzik
Наследование: extends AbstractAdapter
Показать файл Открыть проект

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

Свойство Тип Описание
$cacheDir directory of cache files
$extension extension of cache files

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

Метод Описание
__construct ( array $settings = [] ) Check configuration and permissions

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

Метод Описание
doDelete ( string $id ) : boolean | mixed
doFlush ( ) : boolean Flush implementation for all file-based cache implementations
getFilename ( string $id ) : string Generate path to cache file based on cache entry id
writeFile ( string $fileName, string $content ) : boolean | integer Write string to the file in an atomic way

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

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

Check configuration and permissions
public __construct ( array $settings = [] )
$settings array

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

protected doDelete ( string $id ) : boolean | mixed
$id string
Результат boolean | mixed

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

Flush implementation for all file-based cache implementations
protected doFlush ( ) : boolean
Результат boolean

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

Generate path to cache file based on cache entry id
protected getFilename ( string $id ) : string
$id string cache entry id
Результат string path to file

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

Write string to the file in an atomic way
protected writeFile ( string $fileName, string $content ) : boolean | integer
$fileName string
$content string
Результат boolean | integer The number of bytes that were written to the file, or false on failure

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

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

directory of cache files
protected $cacheDir

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

extension of cache files
protected $extension