redis_queue

A persistent, (mostly) atomic queue (like deque or Queue) implemented with redis backing
Download

redis_queue Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Price:
  • FREE
  • Publisher Name:
  • Nicholas Pilon
  • Publisher web site:
  • http://www.oreilly com

redis_queue Tags


redis_queue Description

A persistent, (mostly) atomic queue (like deque or Queue) implemented with redis backing redis_queue is a library useful for implementing a multi-producer, multi-consumer job queue. While it doesn't have all the handy blocking and locking features of Queue, it does have the advantages of being multi-process safe and persistant.Example Usage: >>> from redis import Redis >>> from redis_queue import Queue >>> redis = Redis(host='127.0.0.1', port=6379) >>> queue = Queue(redis, 'test_queue') >>> queue.append('one') >>> queue.append('two') >>> queue.append('three') >>> queue.pop() 'three' >>> queue.pop() 'two' >>> queue.pop() 'one' >>> queue.append('one') >>> queue.append('two') >>> queue.append('three') >>> queue.popleft() 'one' >>> queue.popleft() 'two' >>> queue.popleft() 'three' Requirements: · Python


redis_queue Related Software