Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use Spring Data for Redis serializers?

I'm studing Spring Data for Redis, but until now I have not found any example about how to use the serializers supported by this project?

I've read the section 4.6 of the reference documentation of the project ( http://static.springsource.org/spring-data/data-redis/docs/current/reference/html/redis.html#redis:serializer ) but it basically only says that it exists. Nothing more. How can I use this feature?

like image 389
Kico Lobo Avatar asked Feb 03 '26 12:02

Kico Lobo


1 Answers

Serializers are used in a few places in the codebase, most notably in RedisTemplate to convert the raw bytes stored in Redis as keys/values to your custom data types (and vice versa). This is mentioned in Section 4.4 of the documentation.

like image 101
Jennifer Hickey Avatar answered Feb 05 '26 06:02

Jennifer Hickey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!