Basic cache object for storing key-value pairs, version 0.2.2. This package provides a simple MapCache class with get, set, has, and del methods, similar to Lo-dash v3 MapCache. It has minimal dependencies and a straightforward API, but is largely obsolete compared to native Map or modern caches like cache-base. Last updated in 2016, it is in maintenance mode with no recent releases.
npm install map-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of MapCache: create, set, get, has, and delete entries.
Use new Map() for key-value storage, or consider cache-base for more features.
Replace with new Map() or import from 'lodash' if needed.
Use require('map-cache') or configure bundler for CJS.Run `npm install map-cache` and ensure correct import path.
Use `new MapCache()` to create an instance.
MapCache only has get, set, has, del methods; no iteration methods.
No dependency data recorded yet.