Mongoose Cache: Integrated Redis caching for Mongoose queries.
Best Performance Mongoose caching module that works exactly how you would expect it to, with the latest version of Mongoose.
Install via NPM
npm install mongoose-redis --save
var mongoose = ;var MongooseCache = ;
Config mongoose-redis cache
var cache = ;
var docs = await Post// cache 120 seconds
You can also pass a custom key into the .cache() method, which you can then use later to clear the cached content.