Class ProtoStuffSerializer

java.lang.Object
top.tangyh.basic.cache.utils.ProtoStuffSerializer
All Implemented Interfaces:
org.springframework.data.redis.serializer.RedisSerializer<Object>

public class ProtoStuffSerializer extends Object implements org.springframework.data.redis.serializer.RedisSerializer<Object>
ProtoStuff εΊεˆ—εŒ–
Author:
zuihou
  • Constructor Details

    • ProtoStuffSerializer

      public ProtoStuffSerializer()
  • Method Details

    • 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