PHP Интерфейс ManaPHP\CacheInterface

Показать файл Открыть проект

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

Метод Описание
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 ) : mixed | false | array Retrieves a value from cache with a specified key.
set ( string $key, mixed $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 ) : mixed | false | array
$key string
Результат mixed | false | array

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

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