Class SessionDataCodec
- java.lang.Object
-
- com.aspectran.core.component.session.redis.lettuce.SessionDataCodec
-
- All Implemented Interfaces:
io.lettuce.core.codec.RedisCodec<java.lang.String,com.aspectran.core.component.session.SessionData>
public class SessionDataCodec extends java.lang.Object implements io.lettuce.core.codec.RedisCodec<java.lang.String,com.aspectran.core.component.session.SessionData>SessionDataCodecencodes the session data sent to Redis, and decodes the session data in the command output.Created: 2019/12/08
-
-
Constructor Summary
Constructors Constructor Description SessionDataCodec(java.util.Set<java.lang.String> nonPersistentAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdecodeKey(java.nio.ByteBuffer bytes)com.aspectran.core.component.session.SessionDatadecodeValue(java.nio.ByteBuffer bytes)java.nio.ByteBufferencodeKey(java.lang.String key)java.nio.ByteBufferencodeValue(com.aspectran.core.component.session.SessionData value)
-
-
-
Method Detail
-
decodeKey
public java.lang.String decodeKey(java.nio.ByteBuffer bytes)
- Specified by:
decodeKeyin interfaceio.lettuce.core.codec.RedisCodec<java.lang.String,com.aspectran.core.component.session.SessionData>
-
decodeValue
public com.aspectran.core.component.session.SessionData decodeValue(java.nio.ByteBuffer bytes)
- Specified by:
decodeValuein interfaceio.lettuce.core.codec.RedisCodec<java.lang.String,com.aspectran.core.component.session.SessionData>
-
encodeKey
public java.nio.ByteBuffer encodeKey(java.lang.String key)
- Specified by:
encodeKeyin interfaceio.lettuce.core.codec.RedisCodec<java.lang.String,com.aspectran.core.component.session.SessionData>
-
encodeValue
public java.nio.ByteBuffer encodeValue(com.aspectran.core.component.session.SessionData value)
- Specified by:
encodeValuein interfaceio.lettuce.core.codec.RedisCodec<java.lang.String,com.aspectran.core.component.session.SessionData>
-
-