PHP Класс Pop\Cache\Adapter\File

Автор: Nick Sagona, III ([email protected])
Наследование: implements Pop\Cache\Adapter\AdapterInterface
Показать файл Открыть проект

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

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

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

Метод Описание
__construct ( string $dir ) : File Constructor
clear ( ) : void Method to clear all stored values from cache.
getDir ( ) : string Method to get the current cache dir.
load ( string $id, string $time ) : mixed Method to load a value from cache.
remove ( string $id ) : void Method to delete a value in cache.
save ( string $id, mixed $value, string $time ) : void Method to save a value to cache.

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

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

Instantiate the cache file object
public __construct ( string $dir ) : File
$dir string
Результат File

clear() публичный метод

Method to clear all stored values from cache.
public clear ( ) : void
Результат void

getDir() публичный метод

Method to get the current cache dir.
public getDir ( ) : string
Результат string

load() публичный метод

Method to load a value from cache.
public load ( string $id, string $time ) : mixed
$id string
$time string
Результат mixed

remove() публичный метод

Method to delete a value in cache.
public remove ( string $id ) : void
$id string
Результат void

save() публичный метод

Method to save a value to cache.
public save ( string $id, mixed $value, string $time ) : void
$id string
$value mixed
$time string
Результат void

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

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

Cache dir
protected string $dir
Результат string