bigdata4u / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

Touch command does not work #265

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce:
1. Run memcached
2. Put item into cache
3. Run touch command

I got following in memcached output:
>188 Writing an error: Unknown command
>188 Writing bin response:
>188   0x81 0x1c 0x00 0x00
>188   0x00 0x00 0x00 0x81
>188   0x00 0x00 0x00 0x0f
>188   0x00 0x00 0x00 0x00
>188   0x00 0x00 0x00 0x00
>188   0x00 0x00 0x00 0x00

Memcached: 1.4.4-14 (for Windows) - I tried on Linux as well and it does not 
work
XMemcached version: 2.8.4

Code to use:
MemcachedClient c = new MemcachedClient(new BinaryConnectionFactory),        
AddrUtil.getAddresses("localhost:11211"));
c.set("KEY1", 1, "Hello");
System.out.println("Cached message is = " + c.get("KEY1"));
System.out.println("Touch operation result = " + c.touch("KEY1", 1).get());
System.out.println("Cached message is = " + c.get("KEY1"));

Original issue reported on code.google.com by vkviatko...@gmail.com on 1 Jan 2013 at 2:33

GoogleCodeExporter commented 8 years ago
Do you mean spymemcached?  This is not the bug tracker for xmemcached.

Also, looking at the memcached repository, it appears touch first appears in 
1.4.8.  You'll need either a newer memcached for Windows or something like 
Couchbase.

Original comment by ingen...@gmail.com on 1 Jan 2013 at 7:41