ilovepixelart/ts-cache-mongoose

Support clearing cache for a specific collection.

tranphuquy19 opened this issue · 1 comments

Likes the issue title, can we clear the cache for a specific collection?

Another approach is to set the customKey as <collection_name>:<doc_id> and then remove all records that start with <collection_name>. Nevertheless, I prefer an official method to accomplish this task.

Thank you!

Hm interesting idea