An open API service indexing awesome lists of open source software.

https://github.com/defkode/activerecord_cache_store

Database Cache Store for Rails 3
https://github.com/defkode/activerecord_cache_store

Last synced: 11 months ago
JSON representation

Database Cache Store for Rails 3

Awesome Lists containing this project

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