Package cn.sliew.milky.cache.lettuce
Class ProtostuffCodec<K,V>
- java.lang.Object
-
- cn.sliew.milky.cache.lettuce.ProtostuffCodec<K,V>
-
- All Implemented Interfaces:
io.lettuce.core.codec.RedisCodec<K,V>
public class ProtostuffCodec<K,V> extends Object implements io.lettuce.core.codec.RedisCodec<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description static ProtostuffCodecINSTANCE
-
Constructor Summary
Constructors Constructor Description ProtostuffCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KdecodeKey(ByteBuffer byteBuffer)VdecodeValue(ByteBuffer byteBuffer)ByteBufferencodeKey(K k)ByteBufferencodeValue(V v)
-
-
-
Field Detail
-
INSTANCE
public static final ProtostuffCodec INSTANCE
-
-
Method Detail
-
decodeKey
public K decodeKey(ByteBuffer byteBuffer)
-
decodeValue
public V decodeValue(ByteBuffer byteBuffer)
-
encodeKey
public ByteBuffer encodeKey(K k)
-
encodeValue
public ByteBuffer encodeValue(V v)
-
-