返回介绍

4. Data serialization

发布于 2025-02-21 21:07:12 字数 3530 浏览 0 评论 0 收藏 0

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 nameDescription
org.redisson.codec.Kryo5CodecKryo 5 binary codec
(Android compatible) Default codec
org.redisson.codec.KryoCodecKryo 4 binary codec
org.redisson.codec.JsonJacksonCodecJackson JSON codec.
Stores type information in @class field
(Android compatible)
org.redisson.codec.TypedJsonJacksonCodecJackson JSON codec which doesn't store type id (@class field)
org.redisson.codec.AvroJacksonCodecAvro binary json codec
org.redisson.codec.ProtobufCodecProtobuf codec
org.redisson.codec.FuryCodecApache Fury codec
org.redisson.codec.SmileJacksonCodecSmile binary json codec
org.redisson.codec.CborJacksonCodecCBOR binary json codec
org.redisson.codec.MsgPackJacksonCodecMsgPack binary json codec
org.redisson.codec.IonJacksonCodecAmazon Ion codec
org.redisson.codec.SerializationCodecJDK Serialization binary codec
(Android compatible)
org.redisson.codec.LZ4CodecLZ4 compression codec.
Uses Kryo5Codec for serialization by default
org.redisson.codec.LZ4CodecV2LZ4 Apache Commons compression codec.
Uses Kryo5Codec for serialization by default
org.redisson.codec.SnappyCodecV2Snappy compression codec based on snappy-java project.
Uses Kryo5Codec for serialization by default
org.redisson.client.codec.StringCodecString codec
org.redisson.client.codec.LongCodecLong codec
org.redisson.client.codec.ByteArrayCodecByte array codec
org.redisson.codec.CompositeCodecAllows to mix different codecs as one

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文