I am using JCache
with Redisson
, it's not clear to me how serialization/deserialization works while using the cache.
When I setup the Cache
via configuration I didn't setup anything about this. Is this done transparently?
The objects I am storing in cache are lists, objects from java.time
for example, but I require all of objects of the classes I am storing in the cache implement Serializable
, is this enough?
Looking at the data on redis it seems it is storing data serialized via java default serialization, am I wrong?
Can I control this behaviour? or it's better to leave it as it is ?
Thanks for help
As my comment, from redisson documentation Redisson
use Kryo as default data serializer/deserializer.