PHP 클래스 Webmozart\KeyValueStore\AbstractRedisStore

부터: 1.0
저자: Bernhard Schussek ([email protected])
저자: Titouan Galopin ([email protected])
상속: implements Webmozart\KeyValueStore\Api\KeyValueStore
파일 보기 프로젝트 열기: webmozart/key-value-store

보호된 프로퍼티들

프로퍼티 타입 설명
$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