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?

MIT License

Downloads
86K
Stars
134
Committers
1

Commit Statistics

Past Year

All Time

Total Commits
80
Total Committers
1
Avg. Commits Per Committer
80.0
Bot Commits
0

Issue Statistics

Past Year

All Time

Total Pull Requests
0
2
Merged Pull Requests
0
1
Total Issues
1
10
Time to Close Issues
N/A
9 months
Package Rankings
Top 12.41% on Rubygems.org
Badges
Extracted from project README
Code Climate Gem Version
Related Projects