Class FastJsonJSONBRedisSerializer<T>

java.lang.Object
com.alibaba.fastjson2.support.spring.data.redis.FastJsonJSONBRedisSerializer<T>
All Implemented Interfaces:
org.springframework.data.redis.serializer.RedisSerializer<T>

public class FastJsonJSONBRedisSerializer<T> extends Object implements org.springframework.data.redis.serializer.RedisSerializer<T>
Fastjson(JSONB) for Spring Data Redis Serializer.
Since:
2.0.3
Author:
Victor.Zxy
See Also:
  • RedisSerializer
  • Constructor Details

    • FastJsonJSONBRedisSerializer

      public FastJsonJSONBRedisSerializer(Class<T> type)
  • Method Details

    • 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 interface org.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:
      deserialize in interface org.springframework.data.redis.serializer.RedisSerializer<T>
      Throws:
      org.springframework.data.redis.serializer.SerializationException