public class DefaultCacheConfiguration extends Object implements CacheConfiguration
Constructor and Description |
---|
DefaultCacheConfiguration(String name,
Duration timeToLive,
Duration timeToIdle) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the
Cache for which this configuration applies. |
Duration |
getTimeToIdle()
Returns the Time-to-Idle setting to apply for all entries in the associated
Cache . |
Duration |
getTimeToLive()
Returns the Time-to-Live setting to apply for all entries in the associated
Cache . |
String |
toString() |
public String getName()
CacheConfiguration
Cache
for which this configuration applies.getName
in interface CacheConfiguration
Cache
for which this configuration applies.public Duration getTimeToLive()
CacheConfiguration
Cache
.getTimeToLive
in interface CacheConfiguration
Cache
.public Duration getTimeToIdle()
CacheConfiguration
Cache
.getTimeToIdle
in interface CacheConfiguration
Cache
.Copyright © 2017–2023 Okta. All rights reserved.