[redis]redis常用

https://redis.io/topics/quickstart

$ redis-cli ping
PONG
redis-server    is the Redis Server itself.
redis-sentinel  is the Redis Sentinel executable (monitoring and failover).
redis-cli       is the command line interface utility to talk with Redis.
redis-benchmark is used to check Redis performances.
redis-check-aof and redis-check-dump are useful in the rare event of corrupted data files.
$ redis-cli                                                                
redis 127.0.0.1:6379> ping
PONG
redis 127.0.0.1:6379> set mykey somevalue
OK
redis 127.0.0.1:6379> get mykey
"somevalue"
原文地址:https://www.cnblogs.com/iiiiiher/p/9684950.html