- enter command:
redis-cli
- choose db:
select 1
(1 is db name) - show all keys:
keys *
- del key:
del key_name
- show key type:
type key_name
- show
list type
key len:llen key_name
- show
list type
key value:lrange key_name 0 -1
redis-cli
select 1
(1 is db name)keys *
del key_name
type key_name
list type
key len: llen key_name
list type
key value: lrange key_name 0 -1
本文标题:redis basic
本文链接:https://www.haomeiwen.com/subject/bawumrtx.html
网友评论