Suggestion for the Caching API
Hi, I was playing a bit with the upstash cache and it's very usefull for catalog tables. For example: categories, tags, countries, etc. But when it comes to filtered queries, it would be cool to cache by some column. For example: cache queries by userId in the posts table. And then invalidate by the userId.
May be this is already possible and I didn't see it.
1 Reply
Upvote, it would be cool for this to be implemented. specially for multi-tenant, it would be great to cache via organizationId
I do know if this could be handles via tags, or not
i guess we could, set autoInvalidate to false, set a custom tag, and then just invalidate the tag ourselves.
But it would be cool, to be able to invalidate via table and some column on the table