Difference between revisions of "Redis-cli"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
[[redis-cli --help]] | [[redis-cli --help]] | ||
+ | [[redis-cli --version]] | ||
[[redis-cli -h XXXXXX]] | [[redis-cli -h XXXXXX]] |
Revision as of 22:14, 18 September 2022
redis-cli --help redis-cli --version
redis-cli -h XXXXXX
https://redis.io/docs/manual/cli/
redis-cli INFO SERVER redis-cli --bigkeys redis-cli DBSIZE redis-cli --stat redis-cli --scan redis-cli MONITOR redis-cli --latency redis-cli --latency-history redis-cli --latency-dist redis-cli --intrinsic-latency 5
Backups:
redis-cli --rdb /tmp/dump.rdb
redis-cli DBSIZE (integer) 0
redis-cli LPUSH mylist a b c d (integer) 4 redis-cli --csv LRANGE mylist 0 -1 "d","c","b","a"
redis-cli INCR mycounter (integer) 1 redis-cli INCR mycounter (integer) 2 redis-cli --raw INCR mycounter 3
redis-cli PING or redis-cli ping PONG
redis-cli FLUSHALL OK
redis-cli -x SET net_services < /etc/services
redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused Solution: brew install redis && brew services restart redis
redis-cli help
Related
See also
redis-cli [ info server | memory usage | info memory | memory stats | memory doctor | dbsize | flushall | ping | monitor | --bigkeys | --stat | --scan | --latency | --latency-history | --latency-dist | --intrinsic-latency 5 | -x | -h ] redis-cli --help
- Redis, installation,
/etc/redis.conf, values.yml
, Redis Cluster, Redis Sentinel,/etc/redis-sentinel.conf
, Redis memory footprint,redis-cli, redis-benchmark, redis-check-aof, redis-check-rdb, redis-sentinel, redis-server
, Amazon MemoryDB for Redis, AOF, Redis changelog, Redis Database (RDB), Append Only File (AOF), Redis logs
Advertising: