Redis

default port: 6379

Tool:

  • Redis Sentinel: monitoring, notification, automatic failover, configuration provider
  • Redis Cluster: distributed; data sharding
  • Twemproxy: proxy for memcached and redis by twitter

Ref:

Cheatsheet

Command Line

# install 
brew install redis

# command line 
redis-cli
redis-cli -h HOST -p PORT

# streams back every command processed (for debugging)(expensive operation)
redis-cli monitor

# benchmarking
src/redis-benchmark -c 10 -n 100000 -q

Redis-Cli

<!-- show all list -->
LRANGE key 0 -1  

<!-- show all keys -->
KEYS *