Constructor and Description |
---|
JsonRedisSerializer() |
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(byte[] bytes)
反序列化
|
byte[] |
serialize(Object t)
序列化
|
public byte[] serialize(Object t) throws org.springframework.data.redis.serializer.SerializationException
serialize
in interface org.springframework.data.redis.serializer.RedisSerializer<Object>
t
- 对象org.springframework.data.redis.serializer.SerializationException
- 序列化异常public Object deserialize(byte[] bytes) throws org.springframework.data.redis.serializer.SerializationException
deserialize
in interface org.springframework.data.redis.serializer.RedisSerializer<Object>
bytes
- 字节数组org.springframework.data.redis.serializer.SerializationException
- 序列化异常Copyright © 2019. All rights reserved.