Class FastJsonRedisSerializer<T>
java.lang.Object
com.alibaba.fastjson2.support.spring.data.redis.FastJsonRedisSerializer<T>
- All Implemented Interfaces:
org.springframework.data.redis.serializer.RedisSerializer<T>
- Direct Known Subclasses:
FastJsonJSONBRedisSerializer
public class FastJsonRedisSerializer<T>
extends Object
implements org.springframework.data.redis.serializer.RedisSerializer<T>
Fastjson for Spring Data Redis Serializer.
- Since:
- 2.0.2
- Author:
- lihengming, Victor.Zxy
- See Also:
-
RedisSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(byte[] bytes) byte[]voidsetFastJsonConfig(FastJsonConfig fastJsonConfig) 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
-
FastJsonRedisSerializer
-
-
Method Details
-
getFastJsonConfig
-
setFastJsonConfig
-
serialize
public byte[] serialize(T t) throws org.springframework.data.redis.serializer.SerializationException - Specified by:
serializein interfaceorg.springframework.data.redis.serializer.RedisSerializer<T>- Throws:
org.springframework.data.redis.serializer.SerializationException
-
deserialize
public T deserialize(byte[] bytes) throws org.springframework.data.redis.serializer.SerializationException - Specified by:
deserializein interfaceorg.springframework.data.redis.serializer.RedisSerializer<T>- Throws:
org.springframework.data.redis.serializer.SerializationException
-