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
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:
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
3 matches
Mail list logo