SHARE
TWEET

Untitled

a guest Jul 29th, 2013 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import redis
  2.  
  3. client = redis.StrictRedis('host_ip', db=1)
  4. channel = client.connect()
  5. channel.subscribe('channel_name')
  6.  
  7. # we need to listen to channel.listen to non block it
  8. # This code is blocking
  9. for msg in channel.listen():
  10.     print msg
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top