Denis Otkidach
Denis Otkidach

Reputation: 33230

Python memchached client library with CAS support

I need to use gets and cas (check and set) commands of memcached from Python application. The only Python client library supporting them I found is Twisted. But Twisted requires quite different design of application, so it's not an option. Is there any other full-featured (not listed on official page) Python library for memcached? Pure Python solution is preferred.

Summary: Thanks to piquadrat there is patch for for python-libmemcached to add support of missing methods. The patch is already applied to trunk in August, but there was no new release yet. Using development branch is OK in many cases, but I'm still looking for stable pure Python solution.

Upvotes: 2

Views: 888

Answers (1)

Benjamin Wohlwend
Benjamin Wohlwend

Reputation: 31858

I don't see pylibmc listed there, but I have no idea if it supports those commands you need (edit: it doesn't, sorry).

/edit: if everything else fails, you could perhaps use this patch for python-libmemcached, which adds support for cas and gets.

/edit: The latest git version of pylibmc supports cas and gets

Upvotes: 2

Related Questions