PHP Class MGDigital\BusQue\Redis\PHPRedis\PHPRedisAdapter

Inheritance: implements MGDigital\BusQue\Redis\RedisAdapterInterface
Afficher le fichier Open project: mgdigital/busque

Méthodes publiques

Méthode Description
__construct ( Redis $redis )
bRPopLPush ( string $source, string $destination, integer $timeout )
evalLua ( string $lua, array $args )
hGet ( string $key, string $field )
lLen ( string $key ) : integer
lRange ( string $key, integer $offset, integer $limit = 10 ) : array
sAdd ( string $key, array $members )
sIsMember ( string $key, string $value ) : boolean
sMembers ( string $key ) : array
sRem ( string $key, array $members )
zScore ( string $key, string $value )

Private Methods

Méthode Description
tryCatch ( callable $callable )

Method Details

__construct() public méthode

public __construct ( Redis $redis )
$redis Redis

bRPopLPush() public méthode

public bRPopLPush ( string $source, string $destination, integer $timeout )
$source string
$destination string
$timeout integer

evalLua() public méthode

public evalLua ( string $lua, array $args )
$lua string
$args array

hGet() public méthode

public hGet ( string $key, string $field )
$key string
$field string

lLen() public méthode

public lLen ( string $key ) : integer
$key string
Résultat integer

lRange() public méthode

public lRange ( string $key, integer $offset, integer $limit = 10 ) : array
$key string
$offset integer
$limit integer
Résultat array

sAdd() public méthode

public sAdd ( string $key, array $members )
$key string
$members array

sIsMember() public méthode

public sIsMember ( string $key, string $value ) : boolean
$key string
$value string
Résultat boolean

sMembers() public méthode

public sMembers ( string $key ) : array
$key string
Résultat array

sRem() public méthode

public sRem ( string $key, array $members )
$key string
$members array

zScore() public méthode

public zScore ( string $key, string $value )
$key string
$value string