{"library":"locking-cache","type":"library","category":null,"description":"A locking LRU cache that deduplicates concurrent calls to a cached function: if multiple requests arrive for the same key while the initial call is in-flight, they all wait and receive the cached result once available. Current version 0.4.1 wraps lru-cache to provide a lock/unlock mechanism. The package is minimal but stable, with no recent releases since 2016 (likely maintenance mode). Key differentiators: integrates locking semantics on top of any compatible LRU cache, supports custom factory functions for alternative cache backends, and passes varargs through to all pending callbacks.","language":"javascript","status":"maintenance","version":"0.4.1","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install locking-cache","imports":["var lockingCache = require('locking-cache');","var locked = lockingCache(options);","lockingCache({ dispose: function(key, values) { ... } });"]},{"cmd":"yarn add locking-cache","imports":[]},{"cmd":"pnpm add locking-cache","imports":[]}],"homepage":"https://github.com/mojodna/node-locking-cache#readme","github":"https://github.com/mojodna/node-locking-cache","docs":null,"changelog":null,"pypi":null,"npm":"locking-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}