Skip to content

Conversation

dferstay
Copy link

This commit allows caches to be configured with an ExpireAfterType that
controls how entries are expired from the cache; two types are supported.

  • ExpireAfterWrite specifies that each entry should be automatically
    removed from the cache once a fixed duration has elapsed after the
    entry's creation, or the most recent replacement of its value.
  • ExpireAfterAccess specifies that each entry should be automatically
    removed from the cache once a fixed duration has elapsed after the
    entry's creation, the most recent replacement of its value, or its last
    access.

ExpireAfterType defaults to ExpireAfterWrite for backwards-compatibility.

Signed-off-by: Daniel Ferstay dferstay@splunk.com

This commit allows caches to be configured with an ExpireAfterType that
controls how entries are expired from the cache; two types are supported.

* ExpireAfterWrite specifies that each entry should be automatically
  removed from the cache once a fixed duration has elapsed after the
  entry's creation, or the most recent replacement of its value.
* ExpireAfterAccess specifies that each entry should be automatically
  removed from the cache once a fixed duration has elapsed after the
  entry's creation, the most recent replacement of its value, or its last
  access.

ExpireAfterType defaults to ExpireAfterWrite for backwards-compatibility.

Signed-off-by: Daniel Ferstay <dferstay@splunk.com>
@dferstay
Copy link
Author

dferstay commented May 15, 2020

@calvinfo , @danielstjules , @rbranson , would you be able to take a look at this when you get a chance? :)

Cheers,
-Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant