Class GenericFastJsonRedisSerializer
java.lang.Object
com.alibaba.fastjson.support.spring.GenericFastJsonRedisSerializer
- All Implemented Interfaces:
org.springframework.data.redis.serializer.RedisSerializer<Object>
public class GenericFastJsonRedisSerializer
extends Object
implements org.springframework.data.redis.serializer.RedisSerializer<Object>
Fastjson for Spring Data Redis Serializer(Generic implement).
Compatible fastjson 1.2.x
- Since:
- 2.0.2
- Author:
- lihengming, Victor.Zxy
- See Also:
-
RedisSerializer
-
Constructor Summary
Constructors -
Method Summary
Methods 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
-
GenericFastJsonRedisSerializer
public GenericFastJsonRedisSerializer() -
GenericFastJsonRedisSerializer
-
-
Method Details
-
serialize
public byte[] serialize(Object object) throws org.springframework.data.redis.serializer.SerializationException - Specified by:
serializein interfaceorg.springframework.data.redis.serializer.RedisSerializer<Object>- Throws:
org.springframework.data.redis.serializer.SerializationException
-
deserialize
public Object deserialize(byte[] bytes) throws org.springframework.data.redis.serializer.SerializationException - Specified by:
deserializein interfaceorg.springframework.data.redis.serializer.RedisSerializer<Object>- Throws:
org.springframework.data.redis.serializer.SerializationException
-