Removes and returns the first element in a list, or block until one is available.
Removes and returns the first element in a list, or block until one is available.
timeout in seconds, if zero, the command blocks indefinitely until an element is available
list key(s)
list of key to popped element pair, or None
if timeout occurs
2.0.0
[[scredis.exceptions.RedisErrorResponseException]]
if a key contains a non-list value
Removes and returns the last element in a list, or block until one is available.
Removes and returns the last element in a list, or block until one is available.
timeout in seconds, if zero, the command blocks indefinitely until an element is available in at least one of the provided lists
list key(s)
list of key to popped element pair, or None
if timeout occurs
2.0.0
[[scredis.exceptions.RedisErrorResponseException]]
if a key contains a non-list value
Pops a value from a list, pushes it to another list and returns it, or block until one is available.
Pops a value from a list, pushes it to another list and returns it, or block until one is available.
key of list to pop from
key of list to push to
timeout in seconds, if zero, the command blocks indefinitely until an element is available in the list at sourceKey
the element being popped from source and pushed to destination, or None
if timeout
occurs
2.2.0
[[scredis.exceptions.RedisErrorResponseException]]
if sourceKey or destKey contain non-list values
This trait implements blocking list commands.