Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2015 (3)
20082026
  1. 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