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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T> TReads the object identified bykeyof typetClass.voidRemoves the object identified bykey.voidWrites objectvalueunder the keykey.
- 
Constructor Details- 
RedisSessionDaopublic RedisSessionDao(org.redisson.api.RedissonClient client) Constructor.- Parameters:
- client- the Redis client
 
 
- 
- 
Method Details- 
writeWrites objectvalueunder the keykey.- Specified by:
- writein interface- SessionDao
- Parameters:
- key- the object key
- value- the object
- request- the HTTP servlet request
 
- 
readReads the object identified bykeyof typetClass.- Specified by:
- readin interface- SessionDao
- Type Parameters:
- T- the type
- Parameters:
- key- the object key
- tClass- the type of the object to read
- request- the HTTP servlet request
- Returns:
- the object, or nullif none is available
 
- 
removeRemoves the object identified bykey.- Specified by:
- removein interface- SessionDao
- Parameters:
- key- the object key
- request- the HTTP servlet request
 
 
-