public class SessionInfoCache extends Object
Constructor and Description |
---|
SessionInfoCache(SessionService sessionService,
com.github.benmanes.caffeine.cache.Caffeine<Object,Object> caffeine,
Supplier<String> generator,
Clock clock,
Duration maximumTimeout)
Builds a SessionInfoCache.
|
public SessionInfoCache(SessionService sessionService, com.github.benmanes.caffeine.cache.Caffeine<Object,Object> caffeine, Supplier<String> generator, Clock clock, Duration maximumTimeout)
sessionService
- The SessionService
to execute when a SessionInfo
is not found in the cachecaffeine
- The parameters of the underlying cachegenerator
- The generator to provide the cache idsclock
- A clock providing access to the current instant, date and time using a time-zone, not null
.maximumTimeout
- The maximum time to cache a session. Can be null
, and in that case the time to
cache for a SessionInfo
is not capped.Copyright 2011-2017 ForgeRock AS.