Force save to disk (BGSAVE)

Trigger background RDB save and check its timestamp

redis-cli BGSAVE && redis-cli LASTSAVE

tool
redis32 commands
tags
redis

More redis commands

  • redis-cli -n 1 FLUSHDB ASYNC

    Asynchronously flush database index 1 only

  • redis-cli ZREVRANGEBYSCORE leaderboard +inf -inf WITHSCORES LIMIT 0 10

    Top 10 entries from a sorted set with scores

  • redis-cli XADD mystream '*' event login user alice

    Append a message to a Redis Stream with auto-ID

  • redis-cli -c CLUSTER INFO && redis-cli -c CLUSTER NODES

    Cluster health and node list with slot ranges

  • redis-benchmark -q -n 100000 -c 50 -P 10

    100k requests, 50 clients, 10 pipeline depth (quiet output)

all 32 redis commands