public class RedisKeySerializer extends Object implements org.springframework.data.redis.serializer.RedisSerializer<Object>
spring cache中的简单基本类型直接使用StringRedisSerializer会有问题
RedisKeySerializer()
RedisKeySerializer(Charset charset)
Object
deserialize(byte[] bytes)
byte[]
serialize(Object object)
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
byteArray, canSerialize, getTargetType, java, java, json, string
public RedisKeySerializer()
public RedisKeySerializer(Charset charset)
public byte[] serialize(Object object) throws org.springframework.data.redis.serializer.SerializationException
serialize
org.springframework.data.redis.serializer.RedisSerializer<Object>
org.springframework.data.redis.serializer.SerializationException
public Object deserialize(byte[] bytes) throws org.springframework.data.redis.serializer.SerializationException
deserialize
Copyright © 2023. All rights reserved.