Class JacksonJsonRedisSerializer<T>

java.lang.Object
org.springframework.data.redis.serializer.JacksonJsonRedisSerializer<T>
All Implemented Interfaces:
RedisSerializer<T>

public class JacksonJsonRedisSerializer<T> extends Object implements RedisSerializer<T>
RedisSerializer that can read and write JSON using Jackson 3 and Jackson 3 Databind ObjectMapper.

This serializer can be used to bind to typed beans, or untyped HashMap instances. Note:Null objects are serialized as empty arrays and vice versa.

JSON reading and writing can be customized by configuring JacksonObjectReader respective JacksonObjectWriter.

Since:
4.0
Author:
Christoph Strobl, Thomas Darimont, Mark Paluch