Class StringTranscoder

All Implemented Interfaces:

public class StringTranscoder extends Object implements net.spy.memcached.transcoders.Transcoder<String>
Handles conversion of String values to bytes and back.
  • Field Details

    • MAX_SIZE

      private static final int MAX_SIZE
      Max size is maximum default memcached value size, 1MB.
      See Also:
  • Constructor Details

    • StringTranscoder

      public StringTranscoder()
  • Method Details

    • asyncDecode

      public boolean asyncDecode(net.spy.memcached.CachedData d)
      Specified by:
      asyncDecode in interface net.spy.memcached.transcoders.Transcoder<String>
    • encode

      public net.spy.memcached.CachedData encode(String o)
      Specified by:
      encode in interface net.spy.memcached.transcoders.Transcoder<String>
    • decode

      public String decode(net.spy.memcached.CachedData d)
      Specified by:
      decode in interface net.spy.memcached.transcoders.Transcoder<String>
    • getMaxSize

      public int getMaxSize()
      Specified by:
      getMaxSize in interface net.spy.memcached.transcoders.Transcoder<String>