Hi,
I''m trying to use mem_cache_store for sessions. I have installed the
server and the gem and have added the following to my
config/environment.rb:
>>>>>>>>>>>>>>>>>>>>>>>>>
memcache_options = {
:c_threshold => 10_000,
:compression => true,
:debug => false,
:namespace => ''ruby-forum.com'',
:readonly => false,
:urlencode => false
}
CACHE = MemCache.new memcache_options
CACHE.servers = ''localhost:11211''
session_options = {
:database_manager => CGI::Session::MemCacheStore,
:cache => CACHE,
:session_domain => ''ruby-forum.com''
}
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update
session_options
<<<<<<<<<<<<<<<<<<<<<<<<<
Bur Rails still uses the session table in the database. Is there
anything else I have to do to in order to make this work?
Thanks
Andreas
--
Posted via http://www.ruby-forum.com/.