PHP Class Webmozart\KeyValueStore\PhpRedisStore

Since: 1.0
Author: Bernhard Schussek ([email protected])
Author: Philipp Wahala ([email protected])
Author: Titouan Galopin ([email protected])
Inheritance: extends AbstractRedisStore
Datei anzeigen Open project: webmozart/key-value-store Class Usage Examples

Public Methods

Method Description
__construct ( Redis $client = null ) Creates a store backed by a PhpRedis client.

Protected Methods

Method Description
clientClear ( )
clientExists ( $key )
clientGet ( $key )
clientGetMultiple ( array $keys )
clientKeys ( )
clientNotFoundValue ( )
clientRemove ( $key )
clientSet ( $key, $value )

Method Details

__construct() public method

If no client is passed, a new one is created using the default server "127.0.0.1" and the default port 6379.
public __construct ( Redis $client = null )
$client Redis The client used to connect to Redis.

clientClear() protected method

protected clientClear ( )

clientExists() protected method

protected clientExists ( $key )

clientGet() protected method

protected clientGet ( $key )

clientGetMultiple() protected method

protected clientGetMultiple ( array $keys )
$keys array

clientKeys() protected method

protected clientKeys ( )

clientNotFoundValue() protected method

protected clientNotFoundValue ( )

clientRemove() protected method

protected clientRemove ( $key )

clientSet() protected method

protected clientSet ( $key, $value )