private static final byte[] toEncodedArray(String string) {
    ByteBuffer buffer = asciiCharset.encode(string);
    buffer.rewind();
    byte[] result = new byte[buffer.remaining()];
    buffer.get(result);
    return result;
  }
The retrieval commands "get" and "gets" operates like this:<br>
<code>
get &lt;key&gt;*\r\n<br>
gets &lt;key&gt;*\r\n
</code>
<p>
Each item sent by the server looks like this:<br>
<code>
VALUE &lt;key&gt; &lt;flags&gt; &lt;bytes&gt; [&lt;cas unique&gt;]\r\n<br>
&lt;data block&gt;\r\n
</code>
geode-memcached/src/main/java/org/apache/geode/internal/memcached/commands/GetCommand.java