Preparing for system design interviews?  Try bugzed.com →

locking-cache

JSON →
library 0.4.1 ·javascript maintenance
verified Jun 7, 2026

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.

total hits 14
actors 4 distinct systems
last hit 13d ago AhrefsBot
ByteDance
4
GPTBot
3
Humans
5

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇬🇧 United Kingdom · 🇫🇮 Finland · 🇨🇦 Canada