PHP Interface MGDigital\BusQue\Redis\RedisAdapterInterface

Mostra file Open project: mgdigital/busque Interface Usage Examples

Public Methods

Method Description
bRPopLPush ( string $source, string $destination, integer $timeout )
evalLua ( string $lua, array $args )
hGet ( string $key, string $field ) : string | null
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 ) : integer | null

Method Details

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 ) : string | null
$key string
$field string
return string | null

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 ) : integer | null
$key string
$value string
return integer | null