All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends
Public Member Functions | Public Attributes
redis.client.PubSub Class Reference

List of all members.

Public Member Functions

def __del__
def __init__
def close
def execute_command
def listen
def parse_response
def psubscribe
def punsubscribe
def reset
def subscribe
def unsubscribe

Public Attributes

 channels
 connection
 connection_pool
 patterns
 shard_hint
 subscribe_commands
 subscription_count

Detailed Description

PubSub provides publish, subscribe and listen support to Redis channels.

After subscribing to one or more channels, the listen() method will block
until a message arrives on one of the subscribed channels. That message
will be returned and it's safe to start listening again.

Definition at line 1359 of file client.py.


Constructor & Destructor Documentation

def redis.client.PubSub.__init__ (   self,
  connection_pool,
  shard_hint = None 
)

Definition at line 1367 of file client.py.

Definition at line 1378 of file client.py.


Member Function Documentation

def redis.client.PubSub.close (   self)

Definition at line 1395 of file client.py.

def redis.client.PubSub.execute_command (   self,
  args,
  kwargs 
)

Definition at line 1398 of file client.py.

Definition at line 1481 of file client.py.

Definition at line 1426 of file client.py.

def redis.client.PubSub.psubscribe (   self,
  patterns 
)

Definition at line 1437 of file client.py.

def redis.client.PubSub.punsubscribe (   self,
  patterns = [] 
)
Unsubscribe from any channel matching any pattern in ``patterns``.
If empty, unsubscribe from all channels.

Definition at line 1445 of file client.py.

def redis.client.PubSub.reset (   self)

Definition at line 1389 of file client.py.

def redis.client.PubSub.subscribe (   self,
  channels 
)

Definition at line 1459 of file client.py.

def redis.client.PubSub.unsubscribe (   self,
  channels = [] 
)
Unsubscribe from ``channels``. If empty, unsubscribe
from all channels

Definition at line 1467 of file client.py.


Member Data Documentation

Definition at line 1367 of file client.py.

Definition at line 1367 of file client.py.

Definition at line 1367 of file client.py.

Definition at line 1367 of file client.py.

Definition at line 1367 of file client.py.

Definition at line 1367 of file client.py.

Definition at line 1367 of file client.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


redis
Author(s): Daniel Stonier
autogenerated on Tue Jan 15 2013 17:43:13