8000 expose GetTTL function by karlmcguire · Pull Request #270 · hypermodeinc/ristretto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

expose GetTTL function #270

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

Merged
merged 1 commit into from
Apr 27, 2021
Merged

expose GetTTL function #270

merged 1 commit into from
Apr 27, 2021

Conversation

karlmcguire
Copy link
Contributor
@karlmcguire karlmcguire commented Apr 27, 2021

This adds a GetTTL(key interface{}) (time.Duration, bool) function that returns the TTL (if found) and a bool that's true if the item exists in Ristretto and is not expired.


This change is Reviewable

@karlmcguire karlmcguire merged commit 0f08db7 into master Apr 27, 2021
@karlmcguire karlmcguire deleted the karl/expiration branch April 27, 2021 19:59
@varun06
Copy link
varun06 commented Apr 27, 2021

@karlmcguire is there any plan to cut a new release for ristretto?

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

Successfully merging this pull request may close these issues.

2 participants
0