andymccurdy/redis-py — Issue #219: Subscribe
Author: codenamejake
Created: 2012-02-07 05:07:35+00:00
State: open

At the present time the subscribe function under the pubsub class does not function properly. Currently it will place all incoming subscription messages into a cache and will spit it out when ever you interact with the pubsub class. And who knows when you will actually get an answer to your pubsub class query. I'm suggesting that we implement the same thing that the redis-cli does when subscribe is called. It makes the client only listen to the subscription until the entire script (redis-cli) is killed. This is more useful than what it does at the present time. Or write a twisted like function that allows you to implement the pubsub and create a factor loop and allow all incoming subscription messages to be sorted accordingly.