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

How to renew the ttl? #97

Open
kcmvp opened this issue Dec 8, 2022 · 0 comments
Open

How to renew the ttl? #97

kcmvp opened this issue Dec 8, 2022 · 0 comments

Comments

@kcmvp
Copy link

kcmvp commented Dec 8, 2022

from the source code right now the only way to renew an existing key-value entry ttl is to call *Set(key, value string, opts SetOptions) again.

suggest to add a new method as below :
*SetTTL(key string, opts SetOptions)

for the case just want to update the ttl, the suggested way will gain better performance or not?

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

No branches or pull requests

1 participant