@rpush key value1 value2...valueN
#从列表右端插入值(1-N个),时间复杂度O(1~n)
@lpush key value1 value2...valueN
#从列表左端插入值(1-N个),时间复杂度O(1~n)
@linsert key before|after value newValue
#在list指定的值前|后插入newValue,时间复杂度O(n)
@lpop key
#从列表左侧弹出一个item,时间复杂度为O(1)
@rpop key
#从列表右侧弹出一个item,时间复杂度为O(1)
@lrem key count value
#根据count值,从列表中删除所有value相等的项
#count>0,从左到右边,删除最多count个value相等的项
#count<0,从右到左,删除最多Math.abs(count)个value相等的项
#count=0,删除所有value相等的项,时间复杂度O(n)
@ltrim key start end
#按照索引范围修剪列表,时间复杂度O(1)
@lrange key start end(包含end)
#获取列表指定索引范围所有item,时间复杂度O(n)
@lindex key index
#获取列表指定索引的item,时间复杂度O(n)
@llen key
#获取列表长度,时间复杂度O(1)
@lset key index newValue
#设置列表指定索引值为newValue
@blpop key timeout
#lpop阻塞版本,timeout是阻塞超时时间,timeout=0为永不阻塞,O(1)
@brpop key timeout
#rpop阻塞版本,timeout是阻塞超时时间,timeout=0为永不阻塞,O(1)