An Iron Cache backend for the Quarter Spiral cache-client
gem.
Require this gem and the cache-client
gem e.g. in your Gemfile:
gem 'cache-client'
gem 'cache-backend-iron-cache'
Then use it like this:
cache_client = Cache::Client.new(Cache::Backend::IronCache, 'IRON_CACHE_PROJECT_ID', 'IRON_CACHE_TOKEN', 'CACHE_NAME', more_iron_cache_client_options)
more_iron_cache_client_options
is a hash and can be omitted. When set it will be directly sent to the Iron Cache client
Tests need a connection to the internet and you must set two environment variables with your Iron Cache project id and token: TEST_IRON_CACHE_PROJECT_ID
and TEST_IRON_CACHE_TOKEN
.