Feature Request: use_cache
instead of ignore_cache
#708
jhamman
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our application, we want to utilize Beanie's cache feature but only in certain queries. We would like to have most queries bypass the cache (for consistency reasons) while allowing a few queries to explicitly opt into using the cache. Would an API like this would make sense:
Again, the reason for this request is that we're finding it challenging to ensure that we
ignore_cache=True
is set everywhere we need it to be. From a security perspective, we'd rather forget to use the cache than the other way around.Beta Was this translation helpful? Give feedback.
All reactions