PHP Class MGDigital\BusQue\Redis\PHPRedis\PHPRedisAdapter

Inheritance: implements MGDigital\BusQue\Redis\RedisAdapterInterface
Mostra file Open project: mgdigital/busque

Public Methods

Method 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

Method Description
tryCatch ( callable $callable )

Method Details

__construct() public method

public __construct ( Redis $redis )
$redis Redis

bRPopLPush() public method

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

evalLua() public method

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

hGet() public method

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

lLen() public method

public lLen ( string $key ) : integer
$key string
return integer

lRange() public method

public lRange ( string $key, integer $offset, integer $limit = 10 ) : array
$key string
$offset integer
$limit integer
return array

sAdd() public method

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

sIsMember() public method

public sIsMember ( string $key, string $value ) : boolean
$key string
$value string
return boolean

sMembers() public method

public sMembers ( string $key ) : array
$key string
return array

sRem() public method

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

zScore() public method

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