pylibmc 0.9

A big hand goes out to me. And not for releasing a new version of my own software, but for forgetting to tell anyone about it!

pylibmc 0.9.1 adds a get_stats method, some more compatibility niceness, and the most oft requested feature: per-error exceptions.

Get it while it's hot! Wait, right, I missed my release announcement.

And this is what I mean by "per-error exceptions":

>>> import pylibmc
>>> mc = pylibmc.Client(["127.0.0.1"])
>>> try:
...   mc.incr("boegen", 123)
... except pylibmc.NotFound, e:
...   print "Oi!", e
... 
Oi! error 16 from memcached_increment: NOT FOUND
>>> 

Comments
Posted by: Petr Cervenka §

example of code that causes memory leaks:

from pylibmc import Client
mc = Client(['localhost:11211'])
data = {}
idx = 0
while True:
data['1'] = idx
a = mc.set_multi(data)
idx += 1

2009-11-25 @ 12:38:39
Posted by: patrick §

I've run into an issue while trying to switch from python-memcached to pylibmc:

client.get_multi([])
>> SystemError: error return without exception set

Both setmulti and deletemulti seem to accept [] as an argument.

2009-12-10 @ 06:46:57

Comment the entry:

Name: (required, possibly pseudonym)
Remember me (cookie)

E-mail: (not required, never published, solely for me to reply to you in person)

URL:

Comment:

RSS 2.0