PHP Класс League\Geotools\Cache\Redis

Автор: Antoine Corcy ([email protected])
Наследование: extends AbstractCache, implements League\Geotools\Cache\CacheInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$expire integer The expire value for keys.
$redis Predis\Client The redis cache.

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

Метод Описание
__construct ( array $client = [], integer $expire ) Constructor.
cache ( League\Geotools\Batch\BatchGeocoded $geocoded ) {@inheritDoc}
flush ( ) {@inheritDoc}
getKey ( $providerName, $query ) {@inheritDoc}
isCached ( $providerName, $query ) {@inheritDoc}

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

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

Constructor.
public __construct ( array $client = [], integer $expire )
$client array The client information (optional).
$expire integer The expire value in seconds (optional).

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

{@inheritDoc}
public cache ( League\Geotools\Batch\BatchGeocoded $geocoded )
$geocoded League\Geotools\Batch\BatchGeocoded

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

{@inheritDoc}
public flush ( )

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

{@inheritDoc}
public getKey ( $providerName, $query )

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

{@inheritDoc}
public isCached ( $providerName, $query )

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

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

The expire value for keys.
protected int $expire
Результат integer

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

The redis cache.
protected Client,Predis $redis
Результат Predis\Client