安装使用redis-cli

$ wget http://download.redis.io/releases/redis-3.2.0.tar.gz
tarxzfredis3.2.0.tar.gz cd redis-3.2.0
makeRunRediswith: src/redis-server
$ src/redis-cli

清除redis缓存
1、启动server src/redis-server redis.conf
2、启动cli src/redis-cli -p 6169 -h 10.8.8.94
3、查看所有key keys *
4、删除某个key del key name
5、清除所有 flushall

查看 keys REALNAME_AUTH_* 实名缓存
REALNAME_RECORD

    keys  CUSTOMER_ACCOUNT_INFO_*    账户信息缓存
    keys  ACCOUNT_INFO_*

关闭redis src/redis-cli shutdown

你可能感兴趣的:(Java技术)