- 1. Overview
- 1. 概述
- 2. Configuration
- 2. 配置方法
- 3. Operations execution
- 3. 程序接口调用方式
- 4. Data serialization
- 4. 数据序列化
- 5. Data partitioning(sharding)
- 5. 单个集合数据分片(Sharding)
- 5.1. Common operations over objects
- 6. Distributed objects
- 6. 分布式对象
- 7. Distributed collections
- 7. 分布式集合
- 8. Distributed locks and synchronizers
- 8. 分布式锁和同步器
- 9. Distributed services
- 9. 分布式服务
- 10. Additional features
- 10. 额外功能
- 11. Redis commands mapping
- 11. Redis 命令和 Redisson 对象匹配列表
- 12. Standalone node
- 12. 独立节点模式
- 13. Tools
- 13. 工具
- 14. Integration with frameworks
- 14. 第三方框架整合
- 15. Dependency list
- 15. 项目依赖列表
- 16. FAQ
- 16. Observability
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
4. Data serialization
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.Kryo5Codec | Kryo 5 binary codec (Android compatible) Default codec |
org.redisson.codec.KryoCodec | Kryo 4 binary codec |
org.redisson.codec.JsonJacksonCodec | Jackson JSON codec. Stores type information in @class field(Android compatible) |
org.redisson.codec.TypedJsonJacksonCodec | Jackson JSON codec which doesn't store type id (@class field) |
org.redisson.codec.AvroJacksonCodec | Avro binary json codec |
org.redisson.codec.ProtobufCodec | Protobuf codec |
org.redisson.codec.FuryCodec | Apache Fury 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.SerializationCodec | JDK Serialization binary codec (Android compatible) |
org.redisson.codec.LZ4Codec | LZ4 compression codec. Uses Kryo5Codec for serialization by default |
org.redisson.codec.LZ4CodecV2 | LZ4 Apache Commons compression codec. Uses Kryo5Codec for serialization by default |
org.redisson.codec.SnappyCodecV2 | Snappy compression codec based on snappy-java project. Uses Kryo5Codec for serialization by default |
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 |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论