{"library":"string-cache-map","type":"library","category":null,"description":"StringCacheMap (v1.2.0) is a high-performance, LRU-based Map implementation specifically optimized for string keys, designed as a drop-in replacement for WeakMap when keys are strings. It provides a WeakMap-compatible API (set, get, has, delete) with configurable capacity limits and a victim cache for fast LRU eviction. Unlike plain objects or Map, it avoids collisions with built-in properties like 'constructor' and ensures predictable memory usage. Released on npm with a stable API, it is suitable for caching scenarios where string keys are used and memory constraints exist. It offers a 'hard' mode (default) that strictly evicts oldest entries, and a 'soft' mode that preserves recently set values.","language":"javascript","status":"active","version":"1.2.0","tags":["javascript","WeakMap","cache","map","string","fast"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install string-cache-map","imports":["import StringCacheMap from 'string-cache-map'","import type StringCacheMap from 'string-cache-map'"]},{"cmd":"yarn add string-cache-map","imports":[]},{"cmd":"pnpm add string-cache-map","imports":[]}],"homepage":"https://github.com/drpicox/string-cache-map#readme","github":"https://github.com/drpicox/string-cache-map","docs":null,"changelog":null,"pypi":null,"npm":"string-cache-map","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}