redis 常用命令

启动客户端client:redis-cli.exe -h 127.0.0.1 -p 6379 -a password -n 5

-n 5指定数据5。

启动redis:redis-server.exe redis.windows.conf

查看key类型:type key

其他:get  set

  hmget  put

  randomkey 随机取一个key,用于不知道key的存储方式,比如 ""1583712946394""

原文地址:https://www.cnblogs.com/shihx/p/12447725.html