faradayio/lock_and_cache_js
Most caching libraries don't do locking, meaning that >1 process can be calculating a cached value at the same time. Since you presumably cache things because they cost CPU, database reads, or money, doesn't it make sense to lock while caching?
TypeScriptMIT
Issues
- 2
ensure lock is held while setting cache
#5 opened by n1ywb - 1