if (result != null) {
writeBuffer.writeBytes(VALUE.duplicate());
writeBuffer.writeBytes(ChannelBuffers.copiedBuffer(result.getKeystring(), USASCII));
writeBuffer.writeByte((byte) ' ');
writeBuffer.writeBytes(ChannelBuffers.copiedBuffer(String.valueOf(result.getFlags()), USASCII));
writeBuffer.writeByte((byte) ' ');
writeBuffer.writeBytes(ChannelBuffers
.copiedBuffer(String.valueOf(result.getData().length), USASCII));
if (cmd == Command.GETS) {
writeBuffer.writeByte((byte) ' ');
writeBuffer.writeBytes(ChannelBuffers.copiedBuffer(String.valueOf(result.getCasUnique()),