PHP Класс Webmozart\KeyValueStore\AbstractRedisStore

С версии: 1.0
Автор: Bernhard Schussek ([email protected])
Автор: Titouan Galopin ([email protected])
Наследование: implements Webmozart\KeyValueStore\Api\KeyValueStore
Показать файл Открыть проект

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

Свойство Тип Описание
$client object Redis client.

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

Метод Описание
clear ( )
exists ( $key )
get ( $key, $default = null )
getMultiple ( array $keys, $default = null )
getMultipleOrFail ( array $keys )
getOrFail ( $key )
keys ( )
remove ( $key )
set ( $key, $value )

Защищенные методы

Метод Описание
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.

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

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

public clear ( )

clientClear() абстрактный защищенный Метод

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

clientExists() абстрактный защищенный Метод

Don't have to catch the exceptions.
abstract protected clientExists ( string $key ) : boolean
$key string
Результат boolean

clientGet() абстрактный защищенный Метод

Don't have to catch the exceptions.
abstract protected clientGet ( string $key ) : mixed
$key string The key to fetch
Результат mixed The raw value

clientGetMultiple() абстрактный защищенный Метод

Don't have to catch the exceptions.
abstract protected clientGetMultiple ( array $keys ) : array
$keys array The keys to fetch
Результат array The raw values

clientKeys() абстрактный защищенный Метод

Don't have to catch the exceptions.
abstract protected clientKeys ( ) : array
Результат array The keys

clientNotFoundValue() абстрактный защищенный Метод

Return the value corresponding to "not found" for the internal client.
abstract protected clientNotFoundValue ( ) : mixed
Результат mixed

clientRemove() абстрактный защищенный Метод

Don't have to catch the exceptions.
abstract protected clientRemove ( string $key ) : boolean
$key string
Результат boolean true if the removal worked, false otherwise

clientSet() абстрактный защищенный Метод

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

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

public exists ( $key )

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

public get ( $key, $default = null )

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

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

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

public getMultipleOrFail ( array $keys )
$keys array

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

public getOrFail ( $key )

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

public keys ( )

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

public remove ( $key )

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

public set ( $key, $value )

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

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

Redis client.
protected object $client
Результат object