String:
存储:set key value
获取:get key value
删除:del key
hash:
存储:hset key field value
获取:hget key field
获取所有:hgetall key
删除:hdel key field
List:
存储:lpush key value
rpush key value
获取:lrange key start end
删除:lpop key
rpop key
set:
存储:sadd key value
获取:smembers key
删除:srem key value
sortedSet
存储:zadd key score value
查询:zrange key start end
zrange key start end withscores
zrevrange key
删除:zrem key value
通用操作:
keys *:查询所有
type key:获取键对应的类型
del key:删除对应的类型
|
|