PHP Class Webmozart\KeyValueStore\AbstractRedisStore

Since: 1.0
Author: Bernhard Schussek ([email protected])
Author: Titouan Galopin ([email protected])
Inheritance: implements Webmozart\KeyValueStore\Api\KeyValueStore
显示文件 Open project: webmozart/key-value-store

Protected Properties

Property Type Description
$client object Redis client.

Public Methods

Method Description
clear ( )
exists ( $key )
get ( $key, $default = null )
getMultiple ( array $keys, $default = null )
getMultipleOrFail ( array $keys )
getOrFail ( $key )
keys ( )
remove ( $key )
set ( $key, $value )

Protected Methods

Method Description
clientClear ( ) Call the internal client method to clear all the keys.
clientExists ( string $key ) : boolean Call the internal client method to check if a key exists.
clientGet ( string $key ) : mixed Call the internal client method to fetch a key.
clientGetMultiple ( array $keys ) : array Call the internal client method to fetch multiple keys.
clientKeys ( ) : array Call the internal client method to fetch all the keys.
clientNotFoundValue ( ) : mixed Return the value corresponding to "not found" for the internal client.
clientRemove ( string $key ) : boolean Call the internal client method to remove a key.
clientSet ( string $key, mixed $value ) Call the internal client method to set a value associated to a key.

Method Details

clear() public method

public clear ( )

clientClear() abstract protected method

Don't have to catch the exceptions.
abstract protected clientClear ( )

clientExists() abstract protected method

Don't have to catch the exceptions.
abstract protected clientExists ( string $key ) : boolean
$key string
return boolean

clientGet() abstract protected method

Don't have to catch the exceptions.
abstract protected clientGet ( string $key ) : mixed
$key string The key to fetch
return mixed The raw value

clientGetMultiple() abstract protected method

Don't have to catch the exceptions.
abstract protected clientGetMultiple ( array $keys ) : array
$keys array The keys to fetch
return array The raw values

clientKeys() abstract protected method

Don't have to catch the exceptions.
abstract protected clientKeys ( ) : array
return array The keys

clientNotFoundValue() abstract protected method

Return the value corresponding to "not found" for the internal client.
abstract protected clientNotFoundValue ( ) : mixed
return mixed

clientRemove() abstract protected method

Don't have to catch the exceptions.
abstract protected clientRemove ( string $key ) : boolean
$key string
return boolean true if the removal worked, false otherwise

clientSet() abstract protected method

Don't have to catch the exceptions.
abstract protected clientSet ( string $key, mixed $value )
$key string
$value mixed

exists() public method

public exists ( $key )

get() public method

public get ( $key, $default = null )

getMultiple() public method

public getMultiple ( array $keys, $default = null )
$keys array

getMultipleOrFail() public method

public getMultipleOrFail ( array $keys )
$keys array

getOrFail() public method

public getOrFail ( $key )

keys() public method

public keys ( )

remove() public method

public remove ( $key )

set() public method

public set ( $key, $value )

Property Details

$client protected_oe property

Redis client.
protected object $client
return object