PHP Интерфейс Flintstone\Cache\CacheInterface

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

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

Метод Описание
contains ( string $key ) : boolean Check if a key exists in the cache.
delete ( string $key ) Delete a key from the cache.
flush ( ) Flush the cache.
get ( string $key ) : mixed Get a key from the cache.
set ( string $key, mixed $data ) Set a key in the cache.

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

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

Check if a key exists in the cache.
public contains ( string $key ) : boolean
$key string
Результат boolean

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

Delete a key from the cache.
public delete ( string $key )
$key string

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

Flush the cache.
public flush ( )

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

Get a key from the cache.
public get ( string $key ) : mixed
$key string
Результат mixed

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

Set a key in the cache.
public set ( string $key, mixed $data )
$key string
$data mixed