Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
redis
/
Slow log
Slow log
redis
Show last 20 slow queries with execution time
redis-cli -h redis SLOWLOG GET 20
⎘ copy
#redis
#debug
#monitoring
more redis
all 32 commands →
Memory usage of key
redis-cli -h redis MEMORY USAGE <key>
Flush database
redis-cli -h redis FLUSHDB ASYNC
Save snapshot (BGSAVE)
redis-cli -h redis BGSAVE
Check replication info
redis-cli -h redis INFO replication
Scan keys by pattern
redis-cli -h redis --scan --pattern 'session:*' | head -20