Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 229 by [email protected]: memcached Counter
http://code.google.com/p/memcached/issues/detail?id=229

I installed memcached server in linux
and I run this java code:

MemCachedClient mc = new MemCachedClient();
                String key   = "counterKey";
                long i = 10;
                mc.storeCounter(key, 1);
                System.out.println(mc.incr(key, 1));
                System.out.println(mc.incr(key, 1));
                System.out.println(mc.get(key));
                System.out.println(mc.getCounter(key));

result is
-1
-1
10
-1


why??

Reply via email to