安装略
使用方法:
进入redis:
redis-cli
如有密码则运行:
auth "你的redis密码"
查看所有key:
keys
设置添加新的key-value:
set name "xiaowang"
查看:
get name
$ redis-cli
127.0.0.1:6379> auth yourpassword
OK
127.0.0.1:6379> keys *
1) "asdfasdf"
5) "hello"
127.0.0.1:6379> set hello "test001"
OK
127.0.0.1:6379> get hello
"test001"
127.0.0.1:6379>
本文详细介绍了如何通过redis-cli工具进行密码验证、查看key、设置和获取value的基本操作,适合初学者快速上手。
&spm=1001.2101.3001.5002&articleId=120738696&d=1&t=3&u=764d441343a44f83b68c2be8dc6127ee)
1944

被折叠的 条评论
为什么被折叠?



