PHP Класс ManaPHP\Store\Adapter\Redis

Наследование: extends ManaPHP\Component, implements ManaPHP\Store\AdapterInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$_key string
$_service string

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

Метод Описание
__construct ( string | array | Redis $options = [] ) Redis constructor.
delete ( string $id ) Delete content
exists ( string $id ) : boolean Check if id exists
get ( string $id ) : string | false Fetch content
set ( string $id, string $value ) : void Caches content
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static

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

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

Redis constructor.
public __construct ( string | array | Redis $options = [] )
$options string | array | ConfManaPHP\Store\Adapter\Redis

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

Delete content
public delete ( string $id )
$id string

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

Check if id exists
public exists ( string $id ) : boolean
$id string
Результат boolean

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

Fetch content
public get ( string $id ) : string | false
$id string
Результат string | false

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

Caches content
public set ( string $id, string $value ) : void
$id string
$value string
Результат void

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

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
Результат static

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

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

protected string $_key
Результат string

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

protected string $_service
Результат string