mongoose-redis-cache icon indicating copy to clipboard operation
mongoose-redis-cache copied to clipboard

wish: expire cached entries on save

Open dizzib opened this issue 11 years ago • 3 comments

Haven't tried this yet, but it seems stale data might be returned after save() is called ?

If the cache expired on save() then the expiry time could be significantly increased thereby reducing the calls to mongodb.

Cheers!

dizzib avatar Apr 12 '13 13:04 dizzib

+1

jaxon avatar Aug 08 '13 06:08 jaxon

This would be great for collections which are rarely updated! Any plans to implement this?

mikeuduc avatar Oct 30 '13 18:10 mikeuduc

Bump, it would be a perfect solution

mrgame64 avatar Aug 05 '15 12:08 mrgame64