Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cache_money for Rails 3

I've used various forks (mostly the ngmoco fork) of Nick Kallen's excellent cache_money for several Rails 2.3 based project, but we're now making the leap to Rails 3 which, thanks to the introduction of ActiveRelation, does not work with the popular forks of cache_money.

Is there a fork of cache_money, or an equivalent write-through cache, that is compatible with Rails 3 ?

like image 657
Marc Avatar asked Sep 25 '10 16:09

Marc


3 Answers

Last week I launched a new write-through-cache gem for Rails 3, see https://github.com/orslumen/record-cache.

The reason I built it, is because we were using cache money and recently migrated to Rails 3. So chances are it may also serve you well.

like image 178
Orslumen Avatar answered Oct 20 '22 17:10

Orslumen


There are a branch rails 3 in ngmoco fork to use you :

http://github.com/ngmoco/cache-money/tree/rails3

You can try it I don't know if it's really works.

You can add this in your Gemfile by

gem 'cache_money', :git => 'git://github.com/ngmoco/cache-money.git', :branch => 'rails3'
like image 33
shingara Avatar answered Oct 20 '22 18:10

shingara


second_level_cache is also a gem inspired by CacheMoney.

like image 20
lulalala Avatar answered Oct 20 '22 18:10

lulalala