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

[feature] Getting TTL value of entry #17

Closed
ClSlaid opened this issue Apr 15, 2022 · 2 comments
Closed

[feature] Getting TTL value of entry #17

ClSlaid opened this issue Apr 15, 2022 · 2 comments
Labels
feature-request Request a new feature help wanted Extra attention is needed

Comments

@ClSlaid
Copy link
Contributor

ClSlaid commented Apr 15, 2022

proposing a new method that gets ttl value of an entry.

let val_ref = cache.get(&key).unwrap();
let ttl: std::time::Duration = val_ref.ttl();
let value = val_ref.value();
@al8n
Copy link
Owner

al8n commented Apr 15, 2022

Hi @ClSlaid, I am busy in recent weeks, I may have a look this weekend if I have time, would you like to help implement this feature?

@ClSlaid
Copy link
Contributor Author

ClSlaid commented Apr 15, 2022

Hi @ClSlaid, I am busy in recent weeks, I may have a look this weekend if I have time, would you like to help implement this feature?

It's pretty hard, so many generic quotes go bruhhhh...

I'll see what I can do...

@al8n al8n added the feature-request Request a new feature label Apr 16, 2022
@al8n al8n added the help wanted Extra attention is needed label May 20, 2022
@al8n al8n closed this as completed in d2d37be May 21, 2022
al8n added a commit that referenced this issue May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants