seamusabshere/lock_and_cache
View on GitHub ↗ ★ 133 Ruby
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?
3 mentions on Hacker News by 1 person: 2 stories, 1 comment · first 2015-09-27 · latest 2015-11-15
20082026
-
I cache with redis: https://github.com/seamusabshere/lock_and_cache (and lock too, with Redis Redlock)
comment by seamusabshere · 2015-09-27 · in Clarifications about Redis and Memcached