forked from redis/redis
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add persistence support for undelivered PubSub messages.
Refer to http://abhinavsingh.com/customizing-redis-pubsub-for-message-persistence-part-2/ for details. Here is a simple demo of what happens to published messages on channels with no active subscribers: $ ./src/redis-cli 127.0.0.1:6379> publish persistent-channel this (integer) 0 127.0.0.1:6379> publish persistent-channel is (integer) 0 127.0.0.1:6379> publish persistent-channel gonna (integer) 0 127.0.0.1:6379> publish persistent-channel be (integer) 0 127.0.0.1:6379> publish persistent-channel awesome (integer) 0 127.0.0.1:6379> lrange persistent-channel 0 -1 1) "this" 2) "is" 3) "gonna" 4) "be" 5) "awesome" 127.0.0.1:6379>
- Loading branch information
1 parent
9e546d3
commit 6fdfc98
Showing
1 changed file
with
56 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters