Simple lock-queue via Memcached

Category: Python - Miscellaneous

A simple lock-queue (FIFO) context manager implemented with Memcached.

In essence this is a normal lock, where the requests to acquire the lock are granted in the order in which they were originally made. Note that requests to acquire the lock are always blocking. Date: 07 January, 2012


Concurrency - Contextmanager - Lock - Locking - Memcache - Memcached - Queue

Homepage: http://code.activestate.com/recipes/576567-simple-lock-queue-via-memcached/?in=lang-python

Developer: Tal Einat

License: Freeware

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Firebird RDBMS offers many ANSI SQL features & runs on Linux, Windows & several Unix platforms.

developer Developer: firebirdsql.org
license License: Mozilla Public License (MPL)
operating systems Operating System: All 32-bit MS Windows (95/98/NT/2000/XP), All BSD Platforms (FreeBSD/NetBSD/OpenBSD/Apple Mac OS X), All POSIX (Linux/BSD/UNIX-like OSes), HP-UX, IBM AIX


A Python 2.

developer Developer: Jan Kaliszewski
license License: Python License
operating systems Operating System: Windows


map() applies a function to a list of data sequentially.

developer Developer: Wai Yip Tung
license License: Freeware
operating systems Operating System: Windows


This is a C-level implementation of a fast, re-entrant, optimistic lock for CPython.

developer Developer: Stefan Behnel
license License: Freeware
operating systems Operating System: Windows


A decorator that creates a generator factory that creates generators that can have attributes set on them (like a normal python class).

developer Developer: Longpoke
license License: Python License
operating systems Operating System: Windows


A buffer that will partially consume an iterator in the background.

developer Developer: Javier Ruere
license License: Freeware
operating systems Operating System: Windows


Inspired by unittest.

developer Developer: Nick Coghlan
license License: Freeware
operating systems Operating System: Windows


If n is a positive integer,factorial(n.

developer Developer: Fouad Teniou
license License: Freeware
operating systems Operating System: Windows


This procedure was proposed as a challenge to Python and other languages as the most concise coding.

developer Developer: Don Sawatzky
license License: Freeware
operating systems Operating System: Windows