메소드 | 설명 | |
---|---|---|
__construct ( array $redisAPIs, string $name, integer $timeout = 3 ) | Sets the Redis APIs. | |
seedRandom ( integer | null $seed = null ) | Seeds the random number generator. | |
setLogger ( Psr\Log\LoggerInterface $logger ) | Sets a logger instance on the object |
메소드 | 설명 | |
---|---|---|
acquire ( $key, $expire ) | ||
add ( mixed $redisAPI, string $key, string $value, integer $expire ) : boolean | Sets the key only if such key doesn't exist at the server yet. | |
evalScript ( mixed $redisAPI, string $script, integer $numkeys, array $arguments ) : mixed | ||
getRedisIdentifier ( mixed $redisAPI ) : string | Returns a string representation of the Redis API. | |
release ( $key ) |
메소드 | 설명 | |
---|---|---|
isMajority ( integer $count ) : boolean | Returns if a count is the majority of all servers. |
abstract protected evalScript ( mixed $redisAPI, string $script, integer $numkeys, array $arguments ) : mixed | ||
$redisAPI | mixed | The connected Redis API. |
$script | string | The Lua script. |
$numkeys | integer | The number of arguments that represent Redis key names. |
$arguments | array | Keys and values. |
리턴 | mixed | The script result, or false if executing failed. |
abstract protected getRedisIdentifier ( mixed $redisAPI ) : string | ||
$redisAPI | mixed | The connected Redis API. |
리턴 | string | The identifier. |
public seedRandom ( integer | null $seed = null ) | ||
$seed | integer | null | The optional seed. |
public setLogger ( Psr\Log\LoggerInterface $logger ) | ||
$logger | Psr\Log\LoggerInterface | The logger. |