Package top.tangyh.basic.cache.utils
Class RedisObjectSerializer
java.lang.Object
org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer<Object>
top.tangyh.basic.cache.utils.RedisObjectSerializer
- All Implemented Interfaces:
org.springframework.data.redis.serializer.RedisSerializer<Object>
public class RedisObjectSerializer
extends org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer<Object>
此时定义的序列化操作表示可以序列化所有类的对象,当然,这个对象所在的类一定要实现序列化接口
- Author:
- zuihou
-
Field Summary
Fields inherited from class org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer
DEFAULT_CHARSET -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer
deserialize, getJavaType, serialize, setObjectMapperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.serializer.RedisSerializer
canSerialize, getTargetType
-
Constructor Details
-
RedisObjectSerializer
public RedisObjectSerializer()
-