Skip to content

[feat] 添加 GsonSerializer 支持#40

Open
aruato wants to merge 1 commit into
xuxueli:masterfrom
aruato:feat_gson
Open

[feat] 添加 GsonSerializer 支持#40
aruato wants to merge 1 commit into
xuxueli:masterfrom
aruato:feat_gson

Conversation

@aruato

@aruato aruato commented Aug 27, 2025

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • [√ ] Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

The description of the PR:

  1. Redis添加了gson序列化的支持(jedis自带gson包),支持按照配置(xxl.cache.l2.serializer=gson)动态切换。
  2. 发布/订阅消息的序列化方式和Redis Value保持一致,同样支持按照配置(xxl.cache.l2.serializer=gson)动态切换。之前对于发布/订阅消息的序列化都是固定使用的Java原生的序列化,性能较差,序列化后的字节数也较大。

Other information:
目前为了不引入额外的maven依赖,所以只做了gson,如果需要的话,jackson等也可以添加进去

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant