{"library":"secondary-cache","type":"library","category":null,"description":"A two-tier cache library with a fixed-capacity first-level (memory-resident) cache and an LRU second-level cache. Version 2.1.1 is current, stable, and ships TypeScript definitions. Differentiators include configurable expiration, weight-based eviction, and event hooks (before_add, add, update, del). It is lightweight with no external dependencies, suitable for Node.js or browser environments.","language":"javascript","status":"active","version":"2.1.1","tags":["javascript","abstract","object","class","abstract-nosql","nosql","cache","lru","database","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install secondary-cache","imports":["import { Cache } from 'secondary-cache'","import { LRUCache } from 'secondary-cache'","import type { CacheOptions } from 'secondary-cache'","import { CacheEvent } from 'secondary/cache'"]},{"cmd":"yarn add secondary-cache","imports":[]},{"cmd":"pnpm add secondary-cache","imports":[]}],"homepage":"https://github.com/snowyu/secondary-cache.js","github":"https://github.com/snowyu/secondary-cache.js","docs":null,"changelog":null,"pypi":null,"npm":"secondary-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}