public class EHCacheExpiry extends Object implements org.ehcache.expiry.ExpiryPolicy<String,EHCacheValue>
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TTL
The default time to live in seconds (60 minutes)
|
static long |
MAX_TTL
The max time to live in seconds (12 hours)
|
| Constructor and Description |
|---|
EHCacheExpiry() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
getExpiryForAccess(String s,
Supplier<? extends EHCacheValue> supplier) |
Duration |
getExpiryForCreation(String s,
EHCacheValue ehCacheValue) |
Duration |
getExpiryForUpdate(String s,
Supplier<? extends EHCacheValue> supplier,
EHCacheValue ehCacheValue) |
public static final long DEFAULT_TTL
public static final long MAX_TTL
public Duration getExpiryForCreation(String s, EHCacheValue ehCacheValue)
getExpiryForCreation in interface org.ehcache.expiry.ExpiryPolicy<String,EHCacheValue>public Duration getExpiryForAccess(String s, Supplier<? extends EHCacheValue> supplier)
getExpiryForAccess in interface org.ehcache.expiry.ExpiryPolicy<String,EHCacheValue>public Duration getExpiryForUpdate(String s, Supplier<? extends EHCacheValue> supplier, EHCacheValue ehCacheValue)
getExpiryForUpdate in interface org.ehcache.expiry.ExpiryPolicy<String,EHCacheValue>Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.