pymemcache icon indicating copy to clipboard operation
pymemcache copied to clipboard

CAS not work?

Open UniqLife opened this issue 7 years ago • 1 comments

from pymemcache.client.base import Client client = Client(('localhost', 11211))

result, cas = client.gets('key') client.cas('key', 'value1', cas)


Traceback (most recent call last): File "", line 1, in File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/pymemcache/client/base.py", line 437, in cas return self._store_cmd(b'cas', {key: value}, expire, noreply, cas)[key] File "/my/.pyenv/versions/3.6.5/lib/python3.6/site-packages/pymemcache/client/base.py", line 842, in _store_cmd self._raise_errors(line, name) File "/my/.pyenv/versions/3.6.5/lib/python3.6/site-packages/pymemcache/client/base.py", line 732, in _raise_errors raise MemcacheUnknownCommandError(name) pymemcache.exceptions.MemcacheUnknownCommandError: b'cas'

UniqLife avatar Apr 20 '19 14:04 UniqLife

@UniqLife hello. What was solution of this issue?

rtroyanov avatar Jun 07 '19 10:06 rtroyanov