com.alibaba.fastjson.support.spring

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>
    RedisSerializer FastJson Generic Impl
    Since:
    1.2.36
    Author:
    lihengming
    • Constructor Detail

      • GenericFastJsonRedisSerializer

        public GenericFastJsonRedisSerializer()
    • Method Detail

      • serialize

        public byte[] serialize(Object object)
                         throws org.springframework.data.redis.serializer.SerializationException
        Specified by:
        serialize in interface  org.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:
        deserialize in interface  org.springframework.data.redis.serializer.RedisSerializer<Object>
        Throws:
        org.springframework.data.redis.serializer.SerializationException

Copyright © 2012–2021 Alibaba Group. All rights reserved.