Subscribe to channel
Subscribe and listen to messages on a channel
redis-cli SUBSCRIBE events
More redis commands
-
redis-cli INFO replicationRole, connected replicas, replication lag
-
redis-cli BGSAVE && redis-cli LASTSAVETrigger background RDB save and check its timestamp
-
redis-cli -n 1 FLUSHDB ASYNCAsynchronously flush database index 1 only
-
redis-cli ZREVRANGEBYSCORE leaderboard +inf -inf WITHSCORES LIMIT 0 10Top 10 entries from a sorted set with scores
-
redis-cli XADD mystream '*' event login user aliceAppend a message to a Redis Stream with auto-ID