{"library":"mongoose-redis","type":"library","category":null,"description":"Mongoose Cache is a lightweight module that adds integrated Redis caching to Mongoose queries for Node.js. Version 1.1.1 is the latest stable release; the package is in maintenance mode with irregular updates. It wraps Mongoose query executors to cache results in Redis using a simple .cache(ttlSeconds, customKey) method. Unlike more complex caching solutions (e.g., cachegoose), it aims for minimal configuration and direct Redis URL connection. It supports Mongoose 5.x+ and works with both callback and async/await patterns. Key differentiator: dead-simple API—just call .cache() on any query chain. No support for cache invalidation by pattern or automatic expiration of stale keys beyond TTL.","language":"javascript","status":"maintenance","version":"1.1.1","tags":["javascript","mongoose cache","mongodb cache","mongoose redis","mongoose","redis mongoose","redis mongodb","redis mongo","redis"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install mongoose-redis","imports":["import MongooseCache from 'mongoose-redis'","MongooseCache(mongoose, 'redis://127.0.0.1:6379')","const docs = await Model.find().cache(120);"]},{"cmd":"yarn add mongoose-redis","imports":[]},{"cmd":"pnpm add mongoose-redis","imports":[]}],"homepage":"https://github.com/nasa8x/mongoose-redis#readme","github":"https://github.com/nasa8x/mongoose-redis","docs":null,"changelog":null,"pypi":null,"npm":"mongoose-redis","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}