public class EHCacheExpiry extends Object
| 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)
public Duration getExpiryForAccess(String s, Supplier<? extends EHCacheValue> supplier)
public Duration getExpiryForUpdate(String s, Supplier<? extends EHCacheValue> supplier, EHCacheValue ehCacheValue)
Copyright © 2025 JBoss by Red Hat. All rights reserved.