bluegitter / xmemcached

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

Unknow command TOUCH #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
我用它做一个简单的测试程序,调用API client.touch(key, 
30);时出现异常,不知是何原故?
我使用的版本为:xmemcached-1.4.1(刚下载的)

Caused by: net.rubyeye.xmemcached.exception.UnknownCommandException: Response 
error,error message:Unknow command TOUCH,key=userName
    at net.rubyeye.xmemcached.command.Command.decodeError(Command.java:251)
    at net.rubyeye.xmemcached.command.Command.decodeError(Command.java:279)
    at net.rubyeye.xmemcached.command.text.TextTouchCommand.decode(TextTouchCommand.java:84)
    at net.rubyeye.xmemcached.codec.MemcachedDecoder.decode0(MemcachedDecoder.java:61)
    at net.rubyeye.xmemcached.codec.MemcachedDecoder.decode(MemcachedDecoder.java:56)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.decode(NioTCPSession.java:297)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.decodeAndDispatch(NioTCPSession.java:237)
    at com.google.code.yanf4j.nio.impl.NioTCPSession.readFromBuffer(NioTCPSession.java:207)
    at com.google.code.yanf4j.nio.impl.AbstractNioSession.onRead(AbstractNioSession.java:196)
    at com.google.code.yanf4j.nio.impl.AbstractNioSession.onEvent(AbstractNioSession.java:341)
    at com.google.code.yanf4j.nio.impl.SocketChannelController.dispatchReadEvent(SocketChannelController.java:56)
    at com.google.code.yanf4j.nio.impl.NioController.onRead(NioController.java:157)
    at com.google.code.yanf4j.nio.impl.Reactor.dispatchEvent(Reactor.java:294)
    at com.google.code.yanf4j.nio.impl.Reactor.run(Reactor.java:141)

Original issue reported on code.google.com by ssy8...@gmail.com on 2 Apr 2013 at 3:38

GoogleCodeExporter commented 9 years ago
这异常信息还不明确吗? unknow command

也就是你的memcached版本不支持touch命令。

Original comment by killme2...@gmail.com on 2 Apr 2013 at 3:55

GoogleCodeExporter commented 9 years ago
终于看到一个回复的了,谢谢

Original comment by zz82912...@gmail.com on 28 Apr 2015 at 7:14