Class RedisSessionDao
java.lang.Object
se.swedenconnect.bankid.idp.authn.session.RedisSessionDao
- All Implemented Interfaces:
SessionDao
Redis implementation of the
SessionDao
interface.- Author:
- Martin Lindström, Felix Hellman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
Reads the object identified bykey
of typetClass
.void
Removes the object identified bykey
.void
Writes objectvalue
under the keykey
.
-
Constructor Details
-
RedisSessionDao
Constructor.- Parameters:
client
- the Redis client
-
-
Method Details
-
write
Writes objectvalue
under the keykey
.- Specified by:
write
in interfaceSessionDao
- Parameters:
key
- the object keyvalue
- the objectrequest
- the HTTP servlet request
-
read
Reads the object identified bykey
of typetClass
.- Specified by:
read
in interfaceSessionDao
- Type Parameters:
T
- the type- Parameters:
key
- the object keytClass
- the type of the object to readrequest
- the HTTP servlet request- Returns:
- the object, or
null
if none is available
-
remove
Removes the object identified bykey
.- Specified by:
remove
in interfaceSessionDao
- Parameters:
key
- the object keyrequest
- the HTTP servlet request
-