跳转到主要内容

在memcached之上实现分布式锁。

项目描述

memcached_lock

使用memcached或兼容的存储实现分布式事务。

示例

使用示例

from __future__ import with_statement
import memcache
from memcached_lock import dist_lock

client = memcache.Client(['127.0.0.1:11211'])
with dist_lock('test', client):
    print 'Is there anybody out there!?'

项目详情


下载文件

下载适用于您平台文件的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

memcached_lock-1.1.tar.gz (1.9 kB 查看哈希值)

上传时间 源代码

构建分发

memcached_lock-1.1-py2.6.egg (3.0 kB 查看哈希值)

上传时间 源代码

由以下支持

AWSAWS云计算和安全赞助商DatadogDatadog监控FastlyFastlyCDNGoogleGoogle下载分析MicrosoftMicrosoftPSF赞助商PingdomPingdom监控SentrySentry错误记录StatusPageStatusPage状态页面