Package com.okta.sdk.impl.cache
Class DefaultCacheConfiguration
java.lang.Object
com.okta.sdk.impl.cache.DefaultCacheConfiguration
- All Implemented Interfaces:
CacheConfiguration
- Since:
- 0.5.0
-
Constructor Summary
ConstructorDescriptionDefaultCacheConfiguration
(String name, Duration timeToLive, Duration timeToIdle) -
Method Summary
-
Constructor Details
-
DefaultCacheConfiguration
-
-
Method Details
-
getName
Description copied from interface:CacheConfiguration
Returns the name of theCache
for which this configuration applies.- Specified by:
getName
in interfaceCacheConfiguration
- Returns:
- the name of the
Cache
for which this configuration applies.
-
getTimeToLive
Description copied from interface:CacheConfiguration
Returns the Time-to-Live setting to apply for all entries in the associatedCache
.- Specified by:
getTimeToLive
in interfaceCacheConfiguration
- Returns:
- the Time-to-Live setting to apply for all entries in the associated
Cache
.
-
getTimeToIdle
Description copied from interface:CacheConfiguration
Returns the Time-to-Idle setting to apply for all entries in the associatedCache
.- Specified by:
getTimeToIdle
in interfaceCacheConfiguration
- Returns:
- the Time-to-Idle setting to apply for all entries in the associated
Cache
.
-
toString
-