Displaying 10 results from an estimated 10 matches for "c_threshold".
Did you mean:
n_threshold
2006 Aug 19
3
memcache-client working for anyone?
...it _does not have_. Their library
has get() and put() but no read() and write() as rails expects. What
gives? Is everyone quietly writing wrapper libraries around this? No
mention on any blogs...help would be greatly appreciated
My setup from environment.rb initialize:
CACHE = MemCache.new :c_threshold => 10_000,:compression =>
true,:debug => false,:namespace => ''foo'',:readonly => false,:urlencode
=> false
CACHE.servers = ''localhost:11211''
config.action_controller.session_store = :mem_cache_store
config.action_controller.fragment_cach...
2006 Apr 20
12
memcache, sessions, fragments, oh my!
Hi all -
I am trying to get rails to use memcache for sessions and fragment
caching. I''d also like to use the same connection for general caching of
this and that.
I''m following the instructions here:
http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionStore
and hitting a brick wall.
I''m using the new memcache-client since from what I''ve read
2006 Jan 17
10
ActiveRecord + memcache = cached_model
...ses 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''
session_opti...
2006 Jan 30
0
cached_model-1.0.1 ActiveRecords + memcache
...ses 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''
session_opti...
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_options = {
:database...
2007 Jan 30
0
No reaction from memcached
...d 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 my installed versions o...
2008 Jul 15
1
sex expire time for Sessions in memcached
...sing
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_servers,
memcache_option...
2006 Feb 12
3
memcache-client/cached_model help
Hi -
Just downloaded and installed the memcache-client and cached_model
gems and am trying to test it out on a development setup. I added
this to my environment/development.rb
CACHE = MemCache.new :c_threshold => 10_000,
:compression => true,
:debug => true,
:namespace => ''eztrip'',
:readonly => false,
:urlencode => false
CACHE.servers = ''127.0.0.1:11211'...
2010 May 29
0
User Error during memcached integration
..._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'']
Stacktrace
============
/var/...
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