shade icon indicating copy to clipboard operation
shade copied to clipboard

Added support for storage flags in Codec

Open thenobody opened this issue 9 years ago • 1 comments

Added setting and reading of the storage flags (as described in https://github.com/memcached/memcached/blob/master/doc/protocol.txt) into the public API. The intended point of usage is in the Codec trait's methods (i.e. serde operations should be aware of the flags, such as compression and similar).

Few notes:

  • FakeMemcached internals don't support the flags so ignoring/setting 0s where needed
  • unit test MemcachedSuite.increment-default is failing (it seems that it's been failing in previous builds as well)
  • the default codecs in BaseCodecs accept but otherwise ignore the flag values

thenobody avatar Feb 23 '17 14:02 thenobody

It looks like #50 incorporates the flags on Codec idea.

lloydmeta avatar Feb 28 '17 04:02 lloydmeta