Displaying 10 results from an estimated 10 matches for "memcache_opt".
Did you mean:
memcache_host
2008 Jul 15
1
sex expire time for Sessions in memcached
...sions in the case with using
mem_cache_store. I''ve been using ActiveRecord session store till now and
expired them with SQL query. Yesterday I switched to memcache for
storing sessions, however I 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_s...
2006 Jan 17
10
ActiveRecord + memcache = cached_model
...retrievals. CachedModel uses the ActiveRecord::Locking to
ensure that
you don''t perform multiple updates.
== Using CachedModel
First, install the cached_model gem:
$ sudo gem install cached_model
Then set up memcache-client:
$ tail -n 20 config/environments/production.rb
memcache_options = {
:c_threshold => 10_000,
:compression => true,
:debug => false,
:namespace => ''my_rails_app'',
:readonly => false,
:urlencode => false
}
CACHE = MemCache.new memcache_options
CACHE.servers = ''localhost:11211&...
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
2006 Jan 30
0
cached_model-1.0.1 ActiveRecords + memcache
...retrievals. CachedModel uses the ActiveRecord::Locking to
ensure that
you don''t perform multiple updates.
== Using CachedModel
First, install the cached_model gem:
$ sudo gem install cached_model
Then set up memcache-client:
$ tail -n 20 config/environments/production.rb
memcache_options = {
:c_threshold => 10_000,
:compression => true,
:debug => false,
:namespace => ''my_rails_app'',
:readonly => false,
:urlencode => false
}
CACHE = MemCache.new memcache_options
CACHE.servers = ''localhost:11211&...
2005 Dec 25
1
How to use mem_cache_store?
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_...
2007 Jan 30
0
No reaction from memcached
...;s what I have at the end of environment.rb
require
''cached_model''
CACHE = MemCache.new ''localhost:11211'', :namespace => ''my_rails_app''
I''ve also tried these settings with the same result:
require ''cached_model''
memcache_options = {
:c_threshold => 10_000,
:compression => true,
:debug => false,
:namespace => ''my_rails_app'',
:readonly => false,
:urlencode => false
}
CACHE = MemCache.new memcache_options
CACHE.servers = ''localhost:11211''
Here''s...
2010 May 29
0
User Error during memcached integration
...ion_controller.session_store = :mem_cache_store
config.gem "memcache-client", :lib => ''memcache''
config/environments/production.rb
===========================
config.cache_store = :mem_cache_store
require ''memcache''
Caching
Memcached configuration
memcache_options = {
:c_threshold => 100_000,
:compression => true,
:debug => false,
:namespace => ''gucci'',
:readonly => false,
:urlencode => false,
:multithread => true
}
CACHE = MemCache.new memcache_options
CACHE.servers = [''10.x.x.x:11211'']
Stacktra...
2005 Dec 16
11
mysql mem-tables vs. memcached
Could someone please elaborate on the technical differences and practical
impact of whether choosing memory-based tables in MySQL or using memcached.
I got this far on my own:
It seems that MySQL uses the NDB engine for transaction-safe memory access
in a cluster. the memory storage engine seems to be faster but not
synchronizable by any means in a cluster. memcached seems to be ultimately
fast
2007 Aug 20
5
byte-range requests
Hello everyone,
I did some initial tests and it seems that mongrel does not support
byte-range requests. Is this correct?
The reason I ask is that the iPhone requires byte-range requests to
work in order to stream audio or video from a web server.
Thanks in advance,
alan
2006 Apr 20
12
memcache, sessions, fragments, oh my!
...er,
but it''s implementation is different enough that I can''t figure out how to
make it work with:
config.action_controller.session_store = :mem_cache_store
config.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...