Sunday, 12 April 2015

BRPOPLPUSH source destination timeout

Syntax
BRPOPLPUSH source destination timeout
    It is blocked implementation of RPOPLPUSH command. If source is empty, redis blocks the connection until another client pushes some data to source or until timeout is reached. A timeout of zero can be used to block indefinitely. 

127.0.0.1:6379> rpush list1 1 2 3 4 5 
(integer) 5 
127.0.0.1:6379> rpush list2 6 7 8 9 10 
(integer) 5 
127.0.0.1:6379> brpoplpush list1 list2 1000 
"5" 

 
Prevoius                                                 Next                                                 Home

No comments:

Post a Comment