Skip to content

quarter-spiral/cache-backend-iron-cache

Repository files navigation

Cache::Backend::IronCache

An Iron Cache backend for the Quarter Spiral cache-client gem.

Setup

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

Testing

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.

About

An Iron Cache backend for the Quarter Spiral cache-client gem.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages