Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: d6786fe1db
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (24 sloc) 0.997 kB
Redqueue is a light weight queue server that speaks memcache protocol
and provides persistent queue based on log. It is writen in python
using the high performance tornado frameworks, currently all the
functions are in a single file which contains only less than 300 lines
of effective code.
Redqueue is free and unencumbered public domain software.
== Install and Run
Install tornado and (optional) python-memcached for client testing
Get the source from
git@github.com:superisaac/redqueue.git
Install
% python setup.py install
Make the log dir
% mkdir -p log
Run the server
% redqueue_server.py
For more options please run
% redqueue_server.py --help
== Reserve/delete mode
Reserve/delete mode is currently the sole mode, once an item is fetched, a delete request must be send later to mark the item is used, or else the item will be recycled back later.
>>> mc.set('abc', '123')
>>> v = mc.get('abc')
>>> if v is not None:
>>> mc.delete('abc')
Jump to Line
Something went wrong with that request. Please try again.