Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Database Cache Store for Rails 3
branch: master

This branch is 10 commits behind defkode:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
README
Rakefile
activerecord_cache_store.gemspec
activerecord_cache_store.rb

README

Installation
============

gem install activerecord_cache_store

Setup
=====

in your environment:

config.cache_store = :active_record_store


Cache Migration
===============

rails g cache_migration
rake db:migrate

Usage
=====

<% cache do %>
  some html
<% end>

Rails.cache.clear # clear all cache
Rails.cache.cleanup # clear expired cache entries

more about Rails caching http://guides.rubyonrails.org/caching_with_rails.html

Notes
=====

https://rails.lighthouseapp.com/projects/8994/tickets/4452-making-activesupportcache-consistent
Something went wrong with that request. Please try again.