com.alibaba.fastjson2.support.spring.data.redis.FastJsonJSONBRedisSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastjson2-extension-spring5 Show documentation
Show all versions of fastjson2-extension-spring5 Show documentation
Fastjson is a JSON processor (JSON parser + JSON generator) written in Java
The newest version!
package com.alibaba.fastjson2.support.spring.data.redis;
import com.alibaba.fastjson2.support.config.FastJsonConfig;
/**
* Fastjson(JSONB) for Spring Data Redis Serializer.
*
* @author Victor.Zxy
* @see FastJsonRedisSerializer
* @since 2.0.3
*/
@Deprecated
public class FastJsonJSONBRedisSerializer
extends FastJsonRedisSerializer {
public FastJsonJSONBRedisSerializer(Class type) {
super(type);
super.getFastJsonConfig().setJSONB(true);
}
@Override
public void setFastJsonConfig(FastJsonConfig config) {
config.setJSONB(true);
super.setFastJsonConfig(config);
}
}