Exactly Fred.
Ben, I have had experience using Rails.cache as memcache as the store.
And it's worked a treat.
#in environment.rb
config.cache_store = :mem_cache_store, {:namespace => "your_app"}
It would be best to use the rails built in method because if something
comes along like a newer or alternative method of caching you only
have to modify a few bits of your code or even none at all. Just
update your Rails or gems or whatever. Your caching code doesn't
require any modification.
Regards,
Andrew
On Nov 7, 4:46 pm, Ben Knight <[EMAIL PROTECTED]>
wrote:
> Thanks again!
>
> Frederick Cheung wrote:
> > On 7 Nov 2008, at 15:09, Ben Knight wrote:
>
> >> PS. I'm wondering if Rails.cache is better or Memcache. Thanks again.
>
> > That's sort of a non question - Rails.cache can be backed by several
> > different stores, one of which is memcache.
>
> > Fred
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---