public class JsonRedisSerializer extends Object implements org.springframework.data.redis.serializer.RedisSerializer<Object>
Class
es to JSON and back.Constructor and Description |
---|
JsonRedisSerializer(org.codehaus.jackson.map.ObjectMapper objectMapper,
List<Class<?>> classes)
The given object mapper must be able to serialize/deserialize the given classes.
|
public JsonRedisSerializer(org.codehaus.jackson.map.ObjectMapper objectMapper, List<Class<?>> classes)
objectMapper
- the Jackson object mapperclasses
- the classes to serialize/deserializepublic Object deserialize(byte[] bytes) throws org.springframework.data.redis.serializer.SerializationException
deserialize
in interface org.springframework.data.redis.serializer.RedisSerializer<Object>
org.springframework.data.redis.serializer.SerializationException
Copyright © 2010 - 2015 edorasware ag. All Rights Reserved.