How do I exclude a db session object from the request that is to be cached ? #409
Unanswered
gladwincogoport
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I exclude a db session object that comes from a dependency ?
According to this other fastapi caching package
https://github.com/a-luna/fastapi-redis-cache?tab=readme-ov-file#initialize-redis
A db session shouldn't be cached because then every single session will be a separate object.
Beta Was this translation helpful? Give feedback.
All reactions