Python queue implemented on top of Redis.
Project description
redis_simple_queue
---------------
redis_simple_queue implements a queue on top of Redis.
Requires:
* Redis 2.0+
* Newest version of redis-py http://github.com/andymccurdy/redis-py
* redis_wrap http://pypi.python.org/pypi/redis_wrap
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
Copyright: 2010 by amix
License: BSD.
---------------
redis_simple_queue implements a queue on top of Redis.
Requires:
* Redis 2.0+
* Newest version of redis-py http://github.com/andymccurdy/redis-py
* redis_wrap http://pypi.python.org/pypi/redis_wrap
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
Copyright: 2010 by amix
License: BSD.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file redis_simple_queue-1.0.tar.gz
.
File metadata
- Download URL: redis_simple_queue-1.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1b2ed3a9eb21f69c6d44b710bda83437abbe5126f6cf66e63b1ec597b4aa85e |
|
MD5 | 86f42a18e7963008b936218c87ab06c8 |
|
BLAKE2b-256 | 851848c08568175c8102f22ab68d5253724e6519d130f490213b92ebce2c004f |
File details
Details for the file redis_simple_queue-1.0-py2.6.egg
.
File metadata
- Download URL: redis_simple_queue-1.0-py2.6.egg
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9282b9111528278b255a873e8a24eaacb9f676accefc4a04fc31d9c37e83ffc |
|
MD5 | f1ba720898c2d5687a04b0debf0bed61 |
|
BLAKE2b-256 | c69fa0afefeb91f5b8d30918d488da26ab45d1d744509175b7e563dd5e70a36b |