列表(list)函数 lPush 命令/方法/函数 Description Adds the string value to the head (left) of the list. Creates the list if the key didn't exist. If the key exists and is not a list, FALSE is returned. 添加一个字符串值到LIST容器的顶部(左侧),如果KEY不存在,曾创建一个LIST容器,如果KEY存在并且不是一个LIS
RPUSH:从列表尾部插入一个元素,RPOP:返回列表最后一个元素并从列表删除LPUSH:从列表头部插入一个元素,LPOP:返回列表第一个元素并从列表删除(没看到命名的介绍,个人理解R就是right,右边,L就是left,左边,这样记还挺方便) 使用rpush和lpop,可以实现FIFO(First In First Out,先入先出)类型的列队ex:rpush list "aa" "bb" "cc" "dd"lpop lis