{"library":"flat-cache","type":"library","category":null,"description":"A simple key/value cache that persists data to files, backed by an in-memory cache (CacheableMemory). Version 6.1.22 is the current stable release. Part of the Cacheable ecosystem, it combines in-memory speed with file persistence, supporting TTL, LRU eviction, expiration intervals, and automatic save intervals. Replaces the v5 prune method with built-in eviction from CacheableMemory. Ships ESM and CommonJS with TypeScript typings. Notable changes in v6: removed global functions (use imports), replaced prune with ttl/lruSize, changed save() behavior (no longer needs prune option), and introduced new options like serialize/deserialize.","language":"javascript","status":"active","version":"6.1.22","tags":["javascript","cache","caching","cacheable","flat-cache","flat","file","file-cache","file-caching","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install flat-cache","imports":["import { FlatCache } from 'flat-cache'","import { createFromFile } from 'flat-cache'","import { FlatCacheOptions } from 'flat-cache'"]},{"cmd":"yarn add flat-cache","imports":[]},{"cmd":"pnpm add flat-cache","imports":[]}],"homepage":"https://github.com/jaredwray/cacheable#readme","github":"https://github.com/jaredwray/cacheable","docs":null,"changelog":null,"pypi":null,"npm":"flat-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}