How do I reset connections for Rails.cache?

I need to do this for the smart spawning that Passenger has, but I
can't, for the life of me, figure out how to reset it.

CACHE = MemCache.new 'localhost:11211'
CACHE.reset

the above does not work.  First, Rails 2.3.0 does not know what
MemCache is.  I installed the gem but still nothing.  All my other
gems are doing fine.

/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/
dependencies.rb:105:in `const_missing': uninitialized constant
Rails::Initializer::MemCache (NameError)

So I'm just relying on using Rails.cache.fetch, but for passenger, I
need to reset the connections in a forked process:

http://info.michael-simons.eu/2009/03/23/phusion-passenger-and-memcache-client-revisited/

But none of that is working.  What am I missing?

Reply via email to