redis and list | Mar 3, 2016
BRPOPLPUSH
is the blocking variant of RPOPLPUSH
.
When source
contains elements, this command behaves exactly like RPOPLPUSH
.
When used inside a MULTI
/EXEC
block, this command behaves exactly like RPOPLPUSH
.
When source
is empty, Redis will block the connection until another client
pushes to it or until timeout
is reached.
A timeout
of zero can be used to block indefinitely.
redis and list | Mar 3, 2016
BRPOP
is a blocking list pop primitive.
It is the blocking version of RPOP
because it blocks the connection when there
are no elements to pop from any of the given lists.
An element is popped from the tail of the first list that is non-empty, with the
given keys being checked in the order that they are given.
redis and list | Mar 3, 2016
BLPOP
is a blocking list pop primitive.
It is the blocking version of LPOP
because it blocks the connection when there
are no elements to pop from any of the given lists.
An element is popped from the head of the first list that is non-empty, with the
given keys being checked in the order that they are given.
redis and hash | Mar 2, 2016
Returns all values in the hash stored at key
.
redis and hash | Mar 2, 2016
Returns the string length of the value associated with field
in the hash stored at key
. If the key
or the field
do not exist, 0 is returned.
redis and hash | Mar 2, 2016
Sets field
in the hash stored at key
to value
, only if field
does not
yet exist.
If key
does not exist, a new key holding a hash is created.
If field
already exists, this operation has no effect.