Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding some utility functions to cache: #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EVODelavega
Copy link

  • GetRefresh: Get item from cache, update TTL. This allows users to store resources in cache and have them automatically removed if they haven't been used for X amount of time
  • GetRefreshDefault: Same as GetRefresh with default duration (=~ SetDefault)
  • Pop: Get elements from cache, and remove them

TODO (and soon to follow)

A couple of tests covering these 3 functions

* GetRefresh: Get item from cache, update TTL. This allows users to store resources in cache and have them automatically removed if they haven't been used for X amount of time
* GetRefreshDefault: Same as GetRefresh with default duration (=~ SetDefault)
* Pop: Get elements from cache, and remove them
arp242 pushed a commit to arp242/zcache that referenced this pull request Jul 30, 2020
Repository owner deleted a comment from pablodz Jan 3, 2024
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.

None yet

1 participant