lock_and_cache
★ 0
updated 5y ago
⑂ fork
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?
No plain-English explanation yet — one is being written right now. Check back in a minute.