Redis Tips

The command port and cluster bus port offset is fixed and is always 10000.

 

The LPUSH command inserts a new element on the head, while RPUSH inserts a new element on the tail

LPUSH mylist a   # now the list is "a"
LPUSH mylist b   # now the list is "b","a"
RPUSH mylist c   # now the list is "b","a","c" (RPUSH was used this time)
posted @ 2016-03-07 22:27  pengfeis  阅读(166)  评论(0编辑  收藏  举报