public Integer decode(CachedData d) {
    if (FLAGS == d.getFlags()) {
      return tu.decodeInt(d.getData());
    } else {
      return null;
    }
  }
Transcoder that serializes and unserializes longs.
src/main/java/net/spy/memcached/transcoders/IntegerTranscoder.java