应用场景
好友列表,粉丝列表,消息队列,最新消息排行等。
list操作命令【有序,可重复,双端队列】
1.lpush: 往list最左边添加元素
2.rpush:往list最右边添加元素
3.lpop:推出最左边的元素
4.rpop:推出最右边元素
5.llen:查看list长度
6.linsert key before value newValue: 在list指定的值前插入newValue
7.linsert key after value newValue: 在list指定的值后插入newValue