Difference between revisions of "Redis-cli"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
[[redis-cli -h you-redis-server]] | [[redis-cli -h you-redis-server]] | ||
[[redis-cli -h myredis-master]] | [[redis-cli -h myredis-master]] | ||
+ | REDISCLI_AUTH="$REDIS_PASSWORD" [[redis-cli]] -h myredis-master | ||
+ | REDISCLI_AUTH="$REDIS_PASSWORD" [[redis-cli]] -h redis-master | ||
[[redis-cli --version]] | [[redis-cli --version]] | ||
Latest revision as of 14:45, 9 March 2023
https://redis.io/docs/manual/cli/
brew install redis-cli redis-cli --help redis-cli -h you-redis-server redis-cli -h myredis-master REDISCLI_AUTH="$REDIS_PASSWORD" redis-cli -h myredis-master REDISCLI_AUTH="$REDIS_PASSWORD" redis-cli -h redis-master redis-cli --version
redis-cli info server
memory
Redis memory footprint: redis-cli info memory, redis-cli memory stats, redis-cli memory doctor, redis-cli memory usage
redis-cli dbsize
redis-cli flushall
redis-cli ping
redis-cli monitor
redis-cli --bigkeys
redis-cli --stat
redis-cli --scan
redis-cli --latency
redis-cli --latency-history
redis-cli --latency-dist
redis-cli latency doctor
redis-cli --intrinsic-latency 5
Contents
Backups[edit]
redis-cli --rdb /tmp/dump.rdb
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 -x SET net_services < /etc/services
Errors[edit]
redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused Solution: brew install redis && brew services restart redis
Related[edit]
See also[edit]
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: