Replies: 7 comments
-
Hi @Kimblis Thanks for the feedback. You're right; the documentation needs improvement. To clarify, the For
The If you'd like to know more about how auto-caching works, the isAutoCacheEnabled function determines whether auto-caching is enabled for a specific operation on a given model. Here's how it works:
This function provides a flexible way to manage caching behavior based on both global and specific model configurations. PS: I'll work on updating the documentation to make this clearer. If you have more questions or suggestions, let me know. |
Beta Was this translation helpful? Give feedback.
-
I like this extension a lot, and by the looks of it so do other people. I've yet to use it since I've built my own cache system, however, I do wish the documentation was a bit clearer too. Well commented examples/config options would really help. A specific issue (for me at least) is that the docs don't make it quite clear if the cache is automatically cleared upon a mutation action, e.g delete or update. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your kind words! I'm thrilled to see that many are interested in the extension. I appreciate your feedback regarding the documentation, and I'm actively working on making it clearer, including adding well-commented examples and configuration options. To address your specific question, the cache is not automatically cleared when a mutation occurs, such as during a delete or update, unless you provide a key or pattern in the |
Beta Was this translation helpful? Give feedback.
-
Hey! Thanks for taking the time to answer my questions. Out of curiosity, are there any plans on adding auto cache invalidation when a mutation occurs? If that does happen eventually then this extension would become really powerful, as many people want the ability to cache prisma queries without having to manually invalidate results. |
Beta Was this translation helpful? Give feedback.
-
Hi @redicides, I’m currently working on enhancing the In my view, the best approach to caching is to tailor it to specific needs rather than adapting to the limitations of existing libraries. That’s why I initially created a minimal library focused on flexibility. The request for an |
Beta Was this translation helpful? Give feedback.
-
Just make a docs web page deploy to gh pages and add examples |
Beta Was this translation helpful? Give feedback.
-
I've made some improvements to the |
Beta Was this translation helpful? Give feedback.
-
First of all- props for creating this, seems cool so far.
The current problem is lack of documentation. In example you provide some numbers, like ttl, but it never says anywhere - is it seconds, is it milliseconds. Same with stale time.
Better documentation would be really useful.
Also I see exclude models, exclude methods, and then array of models, with nearly same options, so is it like "exclude overall" and exluce partialy?
Beta Was this translation helpful? Give feedback.
All reactions