Package net.rubyeye.xmemcached.impl

Examples of net.rubyeye.xmemcached.impl.MemcachedTCPSession.addCommand()


  public void testDecode() {
    decoder = new MemcachedCodecFactory().getDecoder();
    MemcachedTCPSession session = buildSession();
    Command versionCommand = new TextCommandFactory().createVersionCommand(
        new CountDownLatch(1), null);
    session.addCommand(versionCommand);
    Command decodedCommand = (Command) decoder.decode(IoBuffer
        .wrap(ByteBuffer.wrap("VERSION 1.28\r\n".getBytes())), session);
    assertSame(decodedCommand, versionCommand);
    assertEquals("1.28", decodedCommand.getResult());
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.