0.0
No commit activity in last 3 years
No release in over 3 years
Cache store that does nothing
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Before BlackholeStore###

I was desperate. I couldn't fry an egg without ruining it and my models missed the cache helper. Rails.cache completely ignored the perform_caching setting and my server crashed frequently until it ultimately committed suicide.

After BlackholeStore

My whole life changed. My dog only poops outside and my models can use Rails.cache.fetch under development mode easily.

Install

gem install blackhole-store

Usage

In your development.rb file add the following lines

require 'active_support/cache/blackhole_store'
config.cache_store = :blackhole_store

Then you can use the underlying cache store without worrying about the perform_caching setting

class Product
    def self.total_products
        Rails.cache.fetch("total_products", :expires_in => 2.hours) do 
            Product.count
        end
    end
end