Syntax
RPOP key
Removes and reurns the last
element of the list if list exist, else null.
127.0.0.1:6379> lrange ids 0 3 1) "4" 2) "3" 3) "2" 4) "1" 127.0.0.1:6379> rpop ids "1" 127.0.0.1:6379> lrange ids 0 3 1) "4" 2) "3" 3) "2" 127.0.0.1:6379> rpop ids "2" 127.0.0.1:6379> lrange ids 0 3 1) "4" 2) "3"
No comments:
Post a Comment