redis客户端命令
程序员文章站
2022-03-22 21:21:59
...
1.启动server: redis-server.exe redis.windows.conf
2.启动client: redis-cli.exe
3.查询所有的key: keys *
4.del key
5.exists key
6.move key db
7.rename key newkey
8.renamenx key newkey
9.persist key
10.expire key seconds
11.expireat key timestamp
12.TTL key
13.randomkey
14.type key
15.sort key
2.启动client: redis-cli.exe
3.查询所有的key: keys *
4.del key
5.exists key
6.move key db
7.rename key newkey
8.renamenx key newkey
9.persist key
10.expire key seconds
11.expireat key timestamp
12.TTL key
13.randomkey
14.type key
15.sort key