Subscribe to a channel

Subscribe to a channel and listen for messages

redis-cli SUBSCRIBE events

tool
redis32 commands
tags
redis

More redis commands

  • redis-cli INFO replication

    Show the role, connected replicas and replication lag

  • redis-cli BGSAVE && redis-cli LASTSAVE

    Start a background RDB save and print the last save time (it changes only when BGSAVE finishes)

  • redis-cli -n 1 FLUSHDB ASYNC

    Delete all keys in database 1 only, in the background

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

    Show the top 10 entries of a sorted set with their scores

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

    Add a message to a Redis Stream with an auto-generated ID

all 32 redis commands