-
Notifications
You must be signed in to change notification settings - Fork 47
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
region.get does not respect object cache #143
Comments
the value is not expired because you have not specified an expiration time. call it like this:
so it would appear I need to add a note to the "expiration_time" argument to get() that this is a per-get expiration time, it is not stored with the object. dogpile doesn't store per-object expiration times.
|
@zzzeek thanks for the very prompt reply!
Ok, so it seems we misunderstood what
Ah, our use-case requires per-object expiration times (JWT token |
@zzzeek would you contemplate adding an |
@hugoduncan this rings a bell, like we've proposed this somewhere. let me check |
there's a bunch of issues that are all still open for discussion that get into this, see #124, #125, and others they refer towards. There's a lot of issues that are just open in this area like #45, etc. there is a pluggable invalidation strategy also that was added in #38 but doesn't work on a per item basis (should it?). We do have a "should_cache_fn" callable , but for invalidation there's two kinds of invalidation too, which is what RegionInvalidator gets at. Coming up with APis that allow all these different things to be possible without them conflicting with each other, missing out on key functionality that is impossible to add withou breaking APIs (such as, hard vs. soft invalidation) or introducing new bugs is really hard, and I generally don't have the resources to attend to dogpile.cache other than passing through contributions. If you can take a look at those above issues maybe some sense can be made from them for a feature that we can all work with. |
Thanks for taking the time to put together the thorough summary above. What you've described sounds like a good approach, but I don't think we'll have time to do such a broad update. Look forward to seeing if this gets picked up in the future. |
I expected something like
The text was updated successfully, but these errors were encountered: