Skip to content

Could caffeine support time-based expiration specific for each entry #1741

Answered by ben-manes
waterlx asked this question in Q&A
Discussion options

You must be logged in to vote

The per-entry policy is defined using the Expiry interface. This lets you determine the entry’s duration based on its key, value, and operation.

For example if the http response headers provided a TTL when loading a value into the cache, the policy could honor it locally to match this externally defined duration.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ben-manes
Comment options

Answer selected by ben-manes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants