Displaying 4 results from an estimated 4 matches for "memcache_servers".
2006 Apr 20
12
memcache, sessions, fragments, oh my!
...onfig.action_controller.fragment_cache_store = :mem_cache_store
I''ve got this in environment.rb as well:
MEMCACHE_OPTIONS = {
:compression => false,
:debug => false,
:namespace => "#{RAILS_ENV}",
:readonly => false,
:urlencode => false
}
MEMCACHE_SERVERS = [ ''192.168.1.20:11211'' ]
and if I leave everything else out and run script/console I can use those
defines to create a Memcache object, but I have no idea how to get that
same instance to be used for session_store and fragment_cache_store.
Anyone want to share their config?...
2008 Jul 15
1
sex expire time for Sessions in memcached
...can''t set an expireation period.
My current config is this:
========================
memcache_options = {
:c_threshold => 10_000,
:compression => false,
:debug => false,
:namespace => ''fanopic_dev'',
:readonly => false,
:urlencode => false
}
memcache_servers = [''192.168.4.1:11211'']
config.cache_store = :mem_cache_store, memcache_servers,
memcache_options
config.action_controller.session_store = :mem_cache_store
CACHE = MemCache.new(memcache_options)
CACHE.servers = memcache_servers
ActionController::CgiRequest::DEFAULT_SESSION_OPTION...
2006 May 05
3
Best place for storing configuration information?
Hi all,
Where do you store your non-Rails-specific configuration info? For
instance, I want to be able to login to LDAP as a particular admin
user. I don''t want the u/p combo in any of the models...does it go in
environment.rb? database.yml? Set a constant in a lib file?
When you''ve got it in a good location, how do you access it?
Thanks!
Sean
2006 Aug 19
3
memcache-client working for anyone?
I''m at the bloody forehead stage, so I figure it''s time to ask. After
installing the robot coop''s memcache-client which everyone apparently
recommends, it refuses to work because the rails cache.rb is invoking
the read() method on the cache, which it _does not have_. Their library
has get() and put() but no read() and write() as rails expects. What
gives? Is