PHP Интерфейс ManaPHP\Cache\AdapterInterface

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
delete ( string $key ) Deletes a value with the specified key from cache
exists ( string $key ) : boolean Checks whether a specified key exists in the cache.
get ( string $key ) : string | false Retrieves a value from cache with a specified key.
set ( string $key, string $value, integer $ttl ) : void Stores a value identified by a key into cache.

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

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

Deletes a value with the specified key from cache
public delete ( string $key )
$key string

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

Checks whether a specified key exists in the cache.
public exists ( string $key ) : boolean
$key string
Результат boolean

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

Retrieves a value from cache with a specified key.
public get ( string $key ) : string | false
$key string
Результат string | false

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

Stores a value identified by a key into cache.
public set ( string $key, string $value, integer $ttl ) : void
$key string
$value string
$ttl integer
Результат void