{"library":"ts-cache-mongoose","type":"library","category":null,"description":"v2.2.1 — Mongoose query and aggregate caching plugin supporting in-memory and Redis backends. Integrates via a .cache() method on Mongoose Query and Aggregate instances, with configurable TTL by string or number (seconds). Peer dependencies: mongoose (6.6-9.x), bson, and optional @nestjs/common. Tested against mongoose 6.12.2, 7.6.4, 8.23.0, and 9.4.1. Key differentiator: minimal API surface, ESM + CJS, TypeScript-first, with built-in bounded in-memory cache option.","language":"javascript","status":"active","version":"2.2.1","tags":["javascript","backend","mongo","mongodb","mongoose","plugin","schema","db","nosql","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install ts-cache-mongoose","imports":["import cache from 'ts-cache-mongoose'","cache.init(mongoose, { defaultTTL: '60 seconds', engine: 'memory' })","User.find({}).cache('10 seconds').exec()"]},{"cmd":"yarn add ts-cache-mongoose","imports":[]},{"cmd":"pnpm add ts-cache-mongoose","imports":[]}],"homepage":"https://github.com/ilovepixelart/ts-cache-mongoose#readme","github":"https://github.com/ilovepixelart/ts-cache-mongoose","docs":null,"changelog":null,"pypi":null,"npm":"ts-cache-mongoose","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}