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. ▲ 19
    Show HN: Lock and cache using Redis
    story by seamusabshere · 2015-11-15 · 6 comments
  2. 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
  3. ▲ 1
    I cache with Redis
    story by seamusabshere · 2015-09-27 · 0 comments