格式 redis-cli [参数]
参数
-h 指定ip
-p 指定端口
-a 指定密码
常用命令: redis-cli -h 127.0.0.1 -p 6379 -a 'xxxx'
清理缓存指令
flushdb 清空当前数据库缓存
flushall 清空整个缓存