Python queue implemented on top of Redis
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
redis_simple_queue
test
README.markdown
setup.py

README.markdown

Python queue implemented on top of Redis

Requires:

You can also quick install it from PyPi:

  • $ sudo easy_install redis_wrap
  • $ sudo easy_install redis_simple_queue

Examples

Example of using the queue:

from redis_simple_queue import *

delete_jobs('tasks')

put('tasks', '42')

assert 'tasks' in get_all_queues()
assert queue_stats('tasks')['queue_size'] == 1

assert reserve('tasks') == '42'
assert queue_stats('tasks')['queue_size'] == 0