PHP Class Webmozart\KeyValueStore\AbstractRedisStore

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

Protected Properties

Свойство Type Description
$client object Redis client.

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

public clear ( )

clientClear() abstract protected méthode

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

clientExists() abstract protected méthode

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

clientGet() abstract protected méthode

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

clientGetMultiple() abstract protected méthode

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

clientKeys() abstract protected méthode

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

clientNotFoundValue() abstract protected méthode

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

clientRemove() abstract protected méthode

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

clientSet() abstract protected méthode

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

exists() public méthode

public exists ( $key )

get() public méthode

public get ( $key, $default = null )

getMultiple() public méthode

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

getMultipleOrFail() public méthode

public getMultipleOrFail ( array $keys )
$keys array

getOrFail() public méthode

public getOrFail ( $key )

keys() public méthode

public keys ( )

remove() public méthode

public remove ( $key )

set() public méthode

public set ( $key, $value )

Property Details

$client protected_oe property

Redis client.
protected object $client
Résultat object