-
Does mongoose cache data so that it returns data from memory and only fetches it if needed? |
Beta Was this translation helpful? Give feedback.
Answered by
vkarpov15
Feb 24, 2022
Replies: 2 comments 1 reply
-
This would be kind of critical, dont you think? If it would cache data, then you could never trust mongoose data, as it would be potentially always supply you with old data. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Nope, Mongoose doesn't cache by default. You're welcome to implement caching, but we tend to find it unnecessary given the way we recommend structuring data. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Uzlopak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nope, Mongoose doesn't cache by default. You're welcome to implement caching, but we tend to find it unnecessary given the way we recommend structuring data.