pylibmc icon indicating copy to clipboard operation
pylibmc copied to clipboard

Negative Expiration Issues

Open owensk opened this issue 10 years ago • 2 comments

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 avatar Jul 24 '14 16:07 owensk

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.

owensk avatar Jul 24 '14 16:07 owensk

Thank you for reporting this, @owensk!

lericson avatar Aug 08 '14 10:08 lericson