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
- Show HN: Lock and cache using Redis (19 points, 6 comments, by seamusabshere, 2015-11-15)
- I cache with Redis (1 points, 0 comments, by seamusabshere, 2015-09-27)