public byte[] encodeBoolean(boolean b) {
    byte[] rv = new byte[1];
    rv[0] = (byte) (b ? 1 : 0);
    return rv;
  }
Transcoder that provides compatibility with Greg Whalin's memcached client.
src/main/java/net/spy/memcached/transcoders/WhalinTranscoder.java