Neocache is a blazingly fast, minimal cache library for JavaScript/TypeScript, up to 31% faster than alternatives like lru-cache and quick-lru. Current stable version is 2.5.1. It supports key-value caching with LRU eviction and custom expiration times, and ships with TypeScript definitions. Key differentiators include superior performance in SET, GET, and mixed operations, minimal memory footprint, and built-in benchmarking tools. It is actively maintained.
npm install neocacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Neocache instance, gets a value with an async fallback, and shows custom configuration with LRU eviction.
Use const Neocache = require('neocache').defaultUse Neocache.instance or create new Neocache() as needed
const Neocache = require('neocache').defaultnpm install neocache
No dependency data recorded yet.