Redis 常用命令

1 运行cmd

到redis安装目录,cmd输入redis-cli.exe -h 127.0.0.1 -p 6379

 2 密码登录

auth 输入密码

 3 设置和获取 set "hello"   get "hello"

 4 清空  flushall

5 选择数据库  select 1

原文地址:https://www.cnblogs.com/hanjun0612/p/11078915.html