public interface ValueWithExpiryTime
Important caveat: This interface must be present on the configured cache value type to enable the functionality.
| Modifier and Type | Method and Description |
|---|---|
long |
getCacheExpiryTime()
Point in time in milliseconds since when the value should expire.
|
long getCacheExpiryTime()
ExpiryTimeValues.NO_CACHE if it should not cached.
ExpiryTimeValues.ETERNAL if there is no specific expiry time known or needed.
The effective expiry duration will never be longer than the
configured expiry value via Cache2kBuilder.expireAfterWrite(long, TimeUnit) (long, TimeUnit)}.
If a negative value is returned, the negated value will be the expiry time
used, but sharp expiry is requested always,
ignoring Cache2kBuilder.sharpExpiry(boolean).cache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.