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