public interface RedisSerializer<T>
Modifier and Type | Method and Description |
---|---|
T |
deserialize(byte[] bytes)
Deserialize an object from the given binary data.
|
byte[] |
serialize(T t)
Serialize the given object to binary data.
|
@Nullable byte[] serialize(@Nullable T t) throws SerializationException
t
- object to serialize. Can be null.SerializationException
@Nullable T deserialize(@Nullable byte[] bytes) throws SerializationException
bytes
- object binary representation. Can be null.SerializationException
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.