Public Member Functions | Public Attributes
rocon_python_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 rocon_python_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

Definition at line 1395 of file client.py.

def rocon_python_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 rocon_python_redis.client.PubSub.psubscribe (   self,
  patterns 
)

Definition at line 1437 of file client.py.

def rocon_python_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.

Definition at line 1389 of file client.py.

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

Definition at line 1459 of file client.py.

def rocon_python_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:


rocon_python_redis
Author(s): Andy McCurdy
autogenerated on Fri May 2 2014 10:35:49