|
,从尾删除; ltrim : ltrim key [start] [stop] 保留key的值中指定范围内的数据
lpop : 从list的头部删除元素
rpop : 从list的尾部删除元素
rpoplpush : rpoplpush [source] [destination], 整个操作是原子的
从source的尾部移除元素,并添加到destination的头部,返回被移除的元素值
lindex : lindex key [index] 取list中index位置的元素
llen : 返回key对应list的长度
}
Set:
指令:{}
键值指令:
[
keys :返回给定pattern的所有key
exists: 确认一个key是否存在
del : 删除一个key
expire : 设置一个key的过期时间(秒为单位)
ttl : 用于获取key的有效时长
persist : 移除给定key的过期时间
move : 把当前数据库中的key移动到其它库中
rename : 重命名key
]
服务指令:
[ |
|
|