Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Would love to see an uncache function - Rather than uncaching being done on mutations, I want to add a hook directly to my db to look for changes; when a change is detected I want to uncache my data. To be clear, I'm not looking for the 'hook' functionality itself, just a direct way to uncache without calling other queries/mutations.
Doing it this way gives a few benefits:
I'm aware this plugin exposes some key finding mechanisms - but I'm unsure of how to implement them directly into my redis cache, outside of this plugin; sure, I could look at the source code and figure it out, but then I've got two systems doing the same thing, and that could cause problems down the line if this plugins updated to use a new method for example.
What do you think? I just imagine it as a new function alongside my models if possible (i.e. instead of prisma.user.findFirst({uncache: ...}), I would just call prisma.uncache(...)
Beta Was this translation helpful? Give feedback.
All reactions