|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RedisSerializer<T>
Basic interface serialization and deserialization of Objects to byte arrays (binary data). It is recommended that implementations are designed to handle null objects/empty arrays on serialization and deserialization side. Note that Redis does not accept null keys or values but can return null replies (for non existing keys).
| Method Summary | |
|---|---|
T |
deserialize(byte[] bytes)
Deserialize an object from the given binary data. |
byte[] |
serialize(T t)
Serialize the given object to binary data. |
| Method Detail |
|---|
byte[] serialize(T t)
throws SerializationException
t - object to serialize
SerializationException
T deserialize(byte[] bytes)
throws SerializationException
bytes - object binary representation
SerializationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||