A simple thread-local cache store
Install it from rubygems.org in your terminal:
gem install thread_cacheOr 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.gemRequire it in your Ruby code and the ThreadCache class will be available:
require 'thread_cache'Run tests with:
bundle exec rspecCheck your code with:
bundle exec rubocop