Repository is archived
No commit activity in last 3 years
No release in over 3 years
A Riak cache store for Sprockets, built on the model of sprockets-cache-redis
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Sprockets Riak Cache

A cache store for Sprockets which utilities Riak.

Usage

Gemfile:

gem "sprockets"
gem "sprockets-cache-riak"
# ...

config.ru:

require "sprockets-cache-riak"
env = Sprockets::Environment.new
env.cache = Sprockets::Cache::RiakStore.new(riak, "sprockets")
# ...

Where the first argument is a Riak::Client connection (riak-ruby-client by Basho), and the other (which is optional) is a bucket name.