HackerGit Trending Discord Star

seamusabshere/lock_and_cache

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?

19 best points · 6 comments · 2 Hacker News posts · 133 GitHub stars · View on GitHub

Hacker News discussions