-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support a TtlCacheSet #6
Comments
You can just set the value to
Maybe this could be a |
Well, there are some additional methods that may make sense on |
I see two ways how this could be done:
One advantage of the first one is that it's cleaner. Users don't have to bother inserting tuples with an empty tuple as the value like they would have if using TtlCache like I suggested before. Main question obviously being if you really need set operations on this struct in the first place? |
Well, my need is less now (I actually needed to store a |
Next time I get a chance to sit down with the library I will implement TtlSet as TtlCache as @leoschwarz suggested. This is the same way HashSet in the StdLib is implemented |
Sometimes just existence is necessary, so a
TtlCacheSet
would be a nice addition.The text was updated successfully, but these errors were encountered: