Package com.couchbase.client.deps.io.netty.handler.codec.memcache.binary

Examples of com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheRequest


    }

    private static BinaryMemcacheRequest handlePrependRequest(final PrependRequest msg) {
        String key = msg.key();
        short keyLength = (short) key.length();
        BinaryMemcacheRequest request = new DefaultFullBinaryMemcacheRequest(key, Unpooled.EMPTY_BUFFER, msg.content());

        request.setOpcode(OP_PREPEND);
        request.setKeyLength(keyLength);
        request.setCAS(msg.cas());
        request.setTotalBodyLength(keyLength + msg.content().readableBytes());
        return request;
    }
View Full Code Here

TOP

Related Classes of com.couchbase.client.deps.io.netty.handler.codec.memcache.binary.BinaryMemcacheRequest

Copyright © 2018 www.massapicom. 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.