-
Notifications
You must be signed in to change notification settings - Fork 71
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
Expiration by time #86
Comments
I saw the first item of Design decisions, but i think that gokv can provide multiple interfaces, like gokv.Cache |
Hi @tdakkota, thanks for the feature request! You're right that another interface could be added to the root Regarding the implementations it's a little bit more difficult: Redis and Memcached have native support for key-value pair expiration, but other products that have implementations for There are some ways to implement that on your own:
An alternative would be to only support the products that contain an expiration mechanism on their own, like Redis and Memcached. That might lead to confusion by people who use
Which would you prefer? (Only support the products with expiration support vs. implementing cache entry deletion on our own for products without expiration support) |
some KV stores like Redis and Memcached can automaticly remove expired keys, but gokv can't
The text was updated successfully, but these errors were encountered: