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