Class SessionDataCodec
- java.lang.Object
-
- com.aspectran.core.component.session.redis.lettuce.SessionDataCodec
-
- All Implemented Interfaces:
io.lettuce.core.codec.RedisCodec<java.lang.String,SessionData>
public class SessionDataCodec extends java.lang.Object implements io.lettuce.core.codec.RedisCodec<java.lang.String,SessionData>
SessionDataCodec
encodes 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.String
decodeKey(java.nio.ByteBuffer bytes)
SessionData
decodeValue(java.nio.ByteBuffer bytes)
java.nio.ByteBuffer
encodeKey(java.lang.String key)
java.nio.ByteBuffer
encodeValue(SessionData value)
-
-
-
Method Detail
-
decodeKey
public java.lang.String decodeKey(java.nio.ByteBuffer bytes)
- Specified by:
decodeKey
in interfaceio.lettuce.core.codec.RedisCodec<java.lang.String,SessionData>
-
decodeValue
public SessionData decodeValue(java.nio.ByteBuffer bytes)
- Specified by:
decodeValue
in interfaceio.lettuce.core.codec.RedisCodec<java.lang.String,SessionData>
-
encodeKey
public java.nio.ByteBuffer encodeKey(java.lang.String key)
- Specified by:
encodeKey
in interfaceio.lettuce.core.codec.RedisCodec<java.lang.String,SessionData>
-
encodeValue
public java.nio.ByteBuffer encodeValue(SessionData value)
- Specified by:
encodeValue
in interfaceio.lettuce.core.codec.RedisCodec<java.lang.String,SessionData>
-
-