I need to add some logic before a value saved or retrieved from my redis cache. Let's say to encrypt and decrypt it, or manipulate the value itself, such thing. Is there any way I can do this?
Thank you
You can do whatever you want with the data pre/post serialization/deserialization.
You need to implement RedisSerializer<Object> interface for this.
RedisSerializer<Object>
See this answer for details https://stackoverflow.com/a/65623073/4255107
1.2m questions
2.1m answers
5 comments
56.5k users