Skip to content

expose GetTTL function#270

Merged
karlmcguire merged 1 commit intomasterfrom
karl/expiration
Apr 27, 2021
Merged

expose GetTTL function#270
karlmcguire merged 1 commit intomasterfrom
karl/expiration

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