Skip to content
Redis CLI

대화형 모드, HELP & 검사

REPL을 탐색하고, 명령을 발견하며, 서버를 인트로스펙트.

#interactive#help#info#config

Code

redis-cli
$ redis-cli
127.0.0.1:6379> PING               # PONG
127.0.0.1:6379> HELP               # command groups
127.0.0.1:6379> HELP @string       # all string commands
127.0.0.1:6379> HELP SET           # detailed SET usage

# Server info & stats
127.0.0.1:6379> INFO                # everything
127.0.0.1:6379> INFO server         # just the server section
127.0.0.1:6379> INFO memory         # memory stats
127.0.0.1:6379> DBSIZE              # number of keys in current DB
127.0.0.1:6379> CLIENT LIST         # connected clients
127.0.0.1:6379> CONFIG GET maxmemory
127.0.0.1:6379> CONFIG SET maxmemory 256mb
127.0.0.1:6379> COMMAND COUNT       # how many commands the server knows

# Pretty-print large replies
127.0.0.1:6379> CLIENT LIST --raw   # tab-separated, no framing

# Clear screen / exit
127.0.0.1:6379> CLEAR
127.0.0.1:6379> EXIT