Blogger Information
Blog 6
fans 0
comment 1
visits 4354
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Redis 命令简介
jaronHu的博客
Original
841 people have browsed it
redis-cli -h 10.10.1.141 -p 6379 -a "密码"   #链接redis
keys键操作
exists key                    测试指定的key是否存在
del key1 key2               删除指定key
type key                       返回给定key的value 类型
keys pattern                  返回匹配指定模式的所有key
rename oldkey newkey   改名字
dbsize                           返回当前数据库的key数量
expire key second          为key指定过期时间
ttl key                           返回key的剩余过期秒数
select db-index               选择数据库
move key db-index         将 key 从当前数据库移动到指定数据库
flushdb                          删除当前数据库中所有key
flushall                          删除所有数据库中的所有key

18.png

https://doc.redisfans.com/  #Redis 命令参考

RedisDesktopManager  redis 桌面管理工具

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post