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
- Host: GitHub
- URL: https://github.com/defkode/activerecord_cache_store
- Owner: defkode
- Created: 2010-12-07T09:33:51.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-12-05T16:21:20.000Z (over 14 years ago)
- Last Synced: 2024-12-01T08:51:40.762Z (over 1 year ago)
- Language: Ruby
- Homepage: http://rubygems.org/gems/activerecord_cache_store
- Size: 727 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
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