{"library":"toad-cache","type":"library","category":null,"description":"Toad Cache is a JavaScript/TypeScript library offering in-memory Least-Recently-Used (LRU) and First-In-First-Out (FIFO) caching strategies suitable for both client-side (browser) and server-side (Node.js) environments. The current stable version is 3.7.0. Releases appear to be ad-hoc, driven by feature additions and bug fixes rather than a strict schedule. A key differentiator since version 3.0.0 is the direct export of `Lru` and `Fifo` classes, allowing direct instantiation with `new` rather than a factory function, providing a more idiomatic class-based API. It also supports optional cache statistics tracking (hit/miss/expiration) via the `LruHitStatistics` class and offers both Map-based and Object-based internal implementations for performance tuning. It provides methods for setting, getting, deleting, and managing cache entries, along with properties for cache size and configuration.","language":"javascript","status":"active","version":"3.7.0","tags":["javascript","LRU","FIFO","cache","client","server","least","recently","used","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install toad-cache","imports":["import { Lru } from 'toad-cache'","import { Fifo } from 'toad-cache'","import { LruHitStatistics } from 'toad-cache'"]},{"cmd":"yarn add toad-cache","imports":[]},{"cmd":"pnpm add toad-cache","imports":[]}],"homepage":null,"github":"https://github.com/kibertoad/toad-cache","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/toad-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/toad-cache/compatibility"}}