Redis常用命令汇总

Redis HGET
获取与字段中存储的键哈希相关联的值
D:\web\JH2016\RedisV3.2\2MasterOpenAPI-15698\redis-cli.exe -h 127.0.0.1 -p 45698 HGET openapiauthorizationinfo 2a3f5b378fc0433c8fb6e50302bb2b7888b45bdb7f1e4c1b837ebdab3d0f08da

Redis HDEL 
删除一个或多个哈希字段
D:\web\JH2016\RedisV3.2\2MasterOpenAPI-15698\redis-cli.exe -h 127.0.0.1 -p 98399 HDEL openapiauthorizationinfo 2a3f5b378fc0433c8fb6e50302bb2b7888b45bdb7f1e4c1b837ebdab3d0f08da

bgrewriteaof
重新生成AOF文件
D:\web\JH2016\RedisV3.2\1MasterBase-40100\redis-cli.exe -h 127.0.0.1 -p 55555 bgrewriteaof

posted @ 2016-10-12 11:32  有容乃大  阅读(257)  评论(0编辑  收藏  举报