Save to disk (BGSAVE)
Start a background RDB save and print the last save time (it changes only when BGSAVE finishes)
redis-cli BGSAVE && redis-cli LASTSAVE
More redis commands
-
redis-cli -n 1 FLUSHDB ASYNCDelete all keys in database 1 only, in the background
-
redis-cli ZREVRANGEBYSCORE leaderboard +inf -inf WITHSCORES LIMIT 0 10Show the top 10 entries of a sorted set with their scores
-
redis-cli XADD mystream '*' event login user aliceAdd a message to a Redis Stream with an auto-generated ID
-
redis-cli -c CLUSTER INFO && redis-cli -c CLUSTER NODESShow cluster health and the node list with slot ranges
-
redis-benchmark -q -n 100000 -c 50 -P 10Send 100k requests from 50 clients with pipeline depth 10 (short output)