A simple thread-local cache store
Install it from rubygems.org in your terminal:
gem install thread_cache
Or via Gemfile
in your project:
source 'https://rubygems.org'
gem 'thread_cache', '~> 1.1'
Or build and install the gem locally:
gem build thread_cache.gemspec
gem install thread_cache-1.1.0.gem
Require it in your Ruby code and the ThreadCache
class will be available:
require 'thread_cache'
Run tests with:
bundle exec rspec
Check your code with:
bundle exec rubocop