com.alibaba.fastjson.support.spring
Class FastJsonRedisSerializer<T>
- java.lang.Object
-
- com.alibaba.fastjson.support.spring.FastJsonRedisSerializer<T>
-
- All Implemented Interfaces:
- org.springframework.data.redis.serializer.RedisSerializer<T>
public class FastJsonRedisSerializer<T> extends Object implements org.springframework.data.redis.serializer.RedisSerializer<T>
RedisSerializer
FastJson Impl- Since:
- 1.2.36
- Author:
- lihengming, Victor.Zxy
-
Constructor Summary
Constructors Constructor and Description FastJsonRedisSerializer(Class<T> type)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description T
deserialize(byte[] bytes)
FastJsonConfig
getFastJsonConfig()
byte[]
serialize(T t)
void
setFastJsonConfig(FastJsonConfig fastJsonConfig)
-
Method Detail
getFastJsonConfig
public FastJsonConfig getFastJsonConfig()
setFastJsonConfig
public void setFastJsonConfig(FastJsonConfig fastJsonConfig)
serialize
public byte[] serialize(T t) throws org.springframework.data.redis.serializer.SerializationException
- Specified by:
-
serialize
in interfaceorg.springframework.data.redis.serializer.RedisSerializer<T>
- Throws:
-
org.springframework.data.redis.serializer.SerializationException
Copyright © 2012–2021 Alibaba Group. All rights reserved.