Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Modified README file

  • Loading branch information...
commit d6786fe1db19070cee9b4dfac51cae535ab36bca 1 parent cbecc5e
Zeng Ke authored

Showing 2 changed files with 6 additions and 9 deletions. Show diff stats Hide diff stats

  1. +1 0  .gitignore
  2. +5 9 README
1  .gitignore
... ... @@ -1,3 +1,4 @@
1 1 log
  2 +journal
2 3 *.pyc
3 4 *~
14 README
@@ -26,15 +26,11 @@ Redqueue is free and unencumbered public domain software.
26 26 % redqueue_server.py --help
27 27
28 28 == Reserve/delete mode
29   - Now the program is able to behave like beanstalk to handle client crash, yet it uses memcached protocol
30   - >>> mc.set('abc', 123)
31   - >>> mc.set('config:reserv', 1)
32   - >>> mc.get('abc')
33   - >>> mc.get('abc') # It must be None
34   - >>> mc.delete('abc')
35   -
36   - If client crashed or even server crashed, the key 'abc''s value
37   - 123 is recycled again to queue.
  29 + 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.
  30 + >>> mc.set('abc', '123')
  31 + >>> v = mc.get('abc')
  32 + >>> if v is not None:
  33 + >>> mc.delete('abc')
38 34
39 35
40 36

0 comments on commit d6786fe

Please sign in to comment.
Something went wrong with that request. Please try again.