Caching Models in rails

Posted by jules on Stack Overflow See other posts from Stack Overflow or by jules
Published on 2010-06-16T21:30:13Z Indexed on 2010/06/16 21:32 UTC
Read the original article Hit count: 157

Filed under:
|
|

I have a rails application, with a model that is a kind of repository. The records stored in the DB for that model are (almost) never changed, but are read all the time. Also there is not a lot of them. I would like to store these records in cache, in a generic way. I would like to do something like acts_as_cached, but here are the issue I have:

  • I can not find a decent documentation for acts as cached (neither can I find it's repository)

  • I don't want to use memcached, but something simpler (static variable, or something like that).

Do you have any idea of what gems I could use to do that ?

Thanks

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about caching