4. data serialization - ALANSUDA/redisson GitHub Wiki
Data serialization is extensively used by Redisson to marshall and unmarshall bytes received or sent over network link with Redis server. Many popular codecs are available for usage:
Codec class name | Description |
---|---|
org.redisson.codec.MarshallingCodec |
JBoss Marshalling binary codec Default codec |
org.redisson.codec.JsonJacksonCodec |
Jackson JSON codec. Stores type information in @class field(Android compatible) |
org.redisson.codec.AvroJacksonCodec |
Avro binary json codec |
org.redisson.codec.SmileJacksonCodec |
Smile binary json codec |
org.redisson.codec.CborJacksonCodec |
CBOR binary json codec |
org.redisson.codec.MsgPackJacksonCodec |
MsgPack binary json codec |
org.redisson.codec.IonJacksonCodec |
Amazon Ion codec |
org.redisson.codec.KryoCodec |
Kryo binary codec |
org.redisson.codec.Kryo5Codec |
Kryo 5 binary codec (Android compatible) |
org.redisson.codec.SerializationCodec |
JDK Serialization binary codec (Android compatible) |
org.redisson.codec.LZ4Codec |
LZ4 compression codec. Uses MarshallingCodec for serialization by default |
org.redisson.codec.SnappyCodec |
Netty's implementation of Snappy compression codec. Uses MarshallingCodec for serialization by default |
org.redisson.codec.SnappyCodecV2 |
Snappy compression codec based on snappy-java project. Uses MarshallingCodec for serialization by default |
org.redisson.codec.TypedJsonJacksonCodec |
Jackson JSON codec which doesn't store type id (@class field) during encoding and doesn't require it for decoding |
org.redisson.client.codec.StringCodec |
String codec |
org.redisson.client.codec.LongCodec |
Long codec |
org.redisson.client.codec.ByteArrayCodec |
Byte array codec |
org.redisson.codec.CompositeCodec |
Allows to mix different codecs as one |