lericson / pylibmc

A Python wrapper around the libmemcached interface from TangentOrg.
http://sendapatch.se/projects/pylibmc/
BSD 3-Clause "New" or "Revised" License
481 stars 137 forks source link

Negative Expiration Issues #154

Open owensk opened 10 years ago

owensk commented 10 years ago

On a fresh install of Ubuntu 12.04 LTS, perform the following steps.

In Shell: apt-get install python-pip memcached python-dev libmemcached-dev pip install pylibmc

In Python 2,7,3: import pylibmc mc = pylibmc.Client(["127.0.0.1:11211"]) mc.set("test", 3, -1)

Results:

Exception raised from pylibmc: Traceback (most recent call last): File "", line 1, in _pylibmc.ClientError: error 9 from memcached_set: CLIENT ERROR

In Memcached Log: set test 2 18446744073709551615 1

Expected in Memcached Log: set test 2 -1 1

owensk commented 10 years ago

Note: In order to see the observed and expected values in the memcached log, I had to uncomment the "-vv" line in /etc/memcached.conf to enable verbose logging.

lericson commented 10 years ago

Thank you for reporting this, @owensk!