Hi guys, I remember using memcached in the past, but after the 2.1 release I can''t figure out how I''m suppose to configured it with different environments. Cache_fu had a memcached.yml in config/, but I can''t find how to configure it if for example I want a single small test memcached server in dev mode, and a few distributed servers in production. Does someone know of documentation or examples on how to configure it ? TIA, ngw -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I have it on good authority that ActiveSupport::Cache is a good way to go in Rails 2.1 and beyond (e.g. Rails 3.0 supports it, backward compatible). This interface supports many implementations, including CloudCache if you''re on EC2 - see e.g. getCloudCache.com , in particular the video shows how to configure. Hope this help, Marc On Tue, Feb 16, 2010 at 5:00 PM, Nicholas Wieland < nicholas.wieland-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi guys, I remember using memcached in the past, but after the 2.1 release > I can''t figure out how I''m suppose to configured it with different > environments. > Cache_fu had a memcached.yml in config/, but I can''t find how to configure > it if for example I want a single small test memcached server in dev mode, > and a few distributed servers in production. > > Does someone know of documentation or examples on how to configure it ? > > TIA, > ngw > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 16, 5:00 pm, Nicholas Wieland <nicholas.wiel...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi guys, I remember using memcached in the past, but after the 2.1 release I can''t figure out how I''m suppose to configured it with different environments. > Cache_fu had a memcached.yml in config/, but I can''t find how to configure it if for example I want a single small test memcached server in dev mode, and a few distributed servers in production. > > Does someone know of documentation or examples on how to configure it ?I seem to remember having this problem, too. We just configure it in our <environment>.rb file. So in development.rb you might have: config.cache_store = :mem_cache_store, ''big_host1'', ''big_host2'', etc... http://thewebfellas.com/blog/2008/6/9/rails-2-1-now-with-better-integrated-caching --- Kurt Werle I am looking for a new Rails job: http://www.CircleW.org/kurt/pages/resume -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 17, 8:46 am, "kwe...-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org" <kurt.we...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Feb 16, 5:00 pm, Nicholas Wieland <nicholas.wiel...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > Hi guys, I remember using memcached in the past, but after the 2.1 release I can''t figure out how I''m suppose to configured it with different environments. > > Cache_fu had a memcached.yml in config/, but I can''t find how to configure it if for example I want a single small test memcached server in dev mode, and a few distributed servers in production. > > > Does someone know of documentation or examples on how to configure it ? > > I seem to remember having this problem, too. > > We just configure it in our <environment>.rb file. > > So in development.rb you might have: > config.cache_store = :mem_cache_store, ''big_host1'', ''big_host2'', etc...Doh! Meant to say: So in development.rb you might have: config.cache_store = :mem_cache_store, ''small_host'' So in production.rb you might have: config.cache_store = :mem_cache_store, ''big_host1'', ''big_host2'', etc... http://thewebfellas.com/blog/2008/6/9/rails-2-1-now-with-better-integrated-caching --- Kurt Werle I am looking for a new Rails job:http://www.CircleW.org/kurt/pages/ resume -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.