extras = ctx.alloc().buffer().writeInt(msg.expiry());
} else {
opcode = OP_GET;
extras = Unpooled.EMPTY_BUFFER;
}
<BUG>String key = msg.key();
short keyLength = (short) msg.keyBytes().length;
byte extrasLength = (byte) extras.readableBytes();</BUG>
BinaryMemcacheRequest request = new DefaultBinaryMemcacheRequest(key);
request

extras = ctx.alloc().buffer().writeInt(msg.expiry());
} else if (msg.touch()) {
opcode = OP_GET_AND_TOUCH;
extras = ctx.alloc().buffer().writeInt(msg.expiry());
} else {
opcode = OP_GET;
extras = Unpooled.EMPTY_BUFFER;
}
byte[] key = msg.keyBytes();
short keyLength = (short) key.length;
byte extrasLength = (byte) extras.readableBytes();
BinaryMemcacheRequest request = new DefaultBinaryMemcacheRequest(key);
request
