Memcached

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

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 W. <

On Feb 16, 5:00 pm, Nicholas W. [email protected]
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 .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 W.
I am looking for a new Rails job:
http://www.CircleW.org/kurt/pages/resume

On Feb 17, 8:46 am, “[email protected][email protected] wrote:

We just configure it in our .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 W.
I am looking for a new Rails job:http://www.CircleW.org/kurt/pages/
resume

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs