Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
redis
/
Save snapshot (BGSAVE)
Save snapshot (BGSAVE)
redis
Trigger background RDB snapshot save
redis-cli -h redis BGSAVE
⎘ copy
#redis
more redis
all 32 commands →
Check replication info
redis-cli -h redis INFO replication
Scan keys by pattern
redis-cli -h redis --scan --pattern 'session:*' | head -20
TTL of a key
redis-cli -h redis TTL <key>
Monitor real-time commands
redis-cli MONITOR | grep -v PING
Show slow query log
redis-cli SLOWLOG GET 20