public interface Codec<T>
CodecManager used by a JRedis implementation
(whether per instance or by other relations per JRedis provider implementation), and used
during the encoding of an semantic java type into byte[] and back.| Modifier and Type | Method and Description |
|---|---|
T |
decode(byte[] bytes) |
byte[] |
encode(T object) |
boolean |
supports(Class<?> type) |
T decode(byte[] bytes)
bytes - T corresponding to the value of decoded bytesbyte[] encode(T object)
object - boolean supports(Class<?> type)
type - TCopyright © 2009–2021. All rights reserved.