K
- Key type.V
- Value type.public abstract class RedisCodec<K,V> extends Object
Constructor and Description |
---|
RedisCodec() |
Modifier and Type | Method and Description |
---|---|
abstract K |
decodeKey(ByteBuffer bytes)
Decode the key output by redis.
|
abstract K |
decodeMapKey(ByteBuffer bytes) |
abstract V |
decodeMapValue(ByteBuffer bytes) |
abstract V |
decodeValue(ByteBuffer bytes)
Decode the value output by redis.
|
abstract byte[] |
encodeKey(K key)
Encode the key for output to redis.
|
abstract byte[] |
encodeMapKey(K key) |
abstract byte[] |
encodeMapValue(V value) |
abstract byte[] |
encodeValue(V value)
Encode the value for output to redis.
|
public abstract K decodeKey(ByteBuffer bytes)
bytes
- Raw bytes of the key.public abstract V decodeValue(ByteBuffer bytes)
bytes
- Raw bytes of the value.public abstract byte[] encodeKey(K key)
key
- Key.public abstract byte[] encodeValue(V value)
value
- Value.public abstract byte[] encodeMapValue(V value)
public abstract byte[] encodeMapKey(K key)
public abstract V decodeMapValue(ByteBuffer bytes)
public abstract K decodeMapKey(ByteBuffer bytes)
Copyright © 2014. All rights reserved.