{"library":"ttl-file-cache","type":"library","category":null,"description":"A Node.js disk-based cache module that writes cached items as files and manages automatic pruning of expired entries. Version 1.0.5 is the latest stable; it is a small utility with minimal dependencies (none notable). Key differentiator: it stores data on disk (file-based) with TTL expiry, automatically prunes expired items, and returns buffers with metadata (key, ttl, expires, parse method). It is useful for caching in environments with limited memory or when persistence across restarts is desired. The package supports both synchronous and asynchronous operations (getAll is async). It has not seen updates since 2022, suggesting maintenance mode.","language":"javascript","status":"maintenance","version":"1.0.5","tags":["javascript","cache","file","disk","ttl","expiry","time-to-live"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install ttl-file-cache","imports":["const Cache = require('ttl-file-cache')","const Cache = require('ttl-file-cache'); const cache = new Cache()","No official TypeScript types; use @types/ttl-file-cache if available or define own."]},{"cmd":"yarn add ttl-file-cache","imports":[]},{"cmd":"pnpm add ttl-file-cache","imports":[]}],"homepage":"https://github.com/mugendi/ttl-file-cache#readme","github":"https://github.com/mugendi/ttl-file-cache","docs":null,"changelog":null,"pypi":null,"npm":"ttl-file-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}