PHP Class League\Geotools\Cache\Redis

Author: Antoine Corcy ([email protected])
Inheritance: extends AbstractCache, implements League\Geotools\Cache\CacheInterface
Show file Open project: toin0u/geotools

Protected Properties

Property Type Description
$expire integer The expire value for keys.
$redis Predis\Client The redis cache.

Public Methods

Method Description
__construct ( array $client = [], integer $expire ) Constructor.
cache ( League\Geotools\Batch\BatchGeocoded $geocoded ) {@inheritDoc}
flush ( ) {@inheritDoc}
getKey ( $providerName, $query ) {@inheritDoc}
isCached ( $providerName, $query ) {@inheritDoc}

Method Details

__construct() public method

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

cache() public method

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

flush() public method

{@inheritDoc}
public flush ( )

getKey() public method

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

isCached() public method

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

Property Details

$expire protected property

The expire value for keys.
protected int $expire
return integer

$redis protected property

The redis cache.
protected Client,Predis $redis
return Predis\Client