[Rails] Re: Re: Memcache

2010-07-20 Thread Yani Yen
Hi, What i did in my environment.rb file was created an instance of memcache and assign it to a constant: CACHE = MemCache.new('127.0.0.1') and then in my code something like this: def data_cache(key) unless output = CACHE.get(key) output = yield CACHE.set(key, output, 1.hour) end

[Rails] Re: Re: Memcache

2010-07-20 Thread Yani Yen
Forgot to mention : I had the configuration : config.cache_store = :mem_cache_store in my specific environment file. Still i was getting the above mentioned error Yani Yen wrote: Hi, What i did in my environment.rb file was created an instance of memcache and assign it to a constant:

Re: [Rails] Re: Re: Memcache

2010-07-20 Thread Jeffrey L. Taylor
Quoting Yani Yen li...@ruby-forum.com: Forgot to mention : I had the configuration : config.cache_store = :mem_cache_store in my specific environment file. Still i was getting the above mentioned error Yani Yen wrote: Hi, What i did in my environment.rb file was created an