# No reaction from memcached

**URL:** <https://www.ruby-forum.com/t/no-reaction-from-memcached/83909>\
**Category:** Rails\
**Created:** [January 30, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/no-reaction-from-memcached/83909 "2007-01-30T18:48:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 30, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/no-reaction-from-memcached/83909/1 "2007-01-30T18:48:29Z")

</div>

I’ve been following the instructions here [http://nubyonrails.com/](http://nubyonrails.com/)  
articles/read/716 on how to get started with memcached.

Starting up ./script/console production I get at couple of deprecation  
warnings:

./script/console production Loading production environment. DEPRECATION WARNING: model is deprecated and will be removed from Rails 2.0 See http://www.rubyonrails.org/deprecation for details. (called from ./script/../config/../config/../app/controllers/ application.rb:6) DEPRECATION WARNING: depend\_on is deprecated and will be removed from Rails 2.0 See http://www.rubyonrails.org/deprecation for details. (called from model\_without\_deprecation at /usr/lib/ruby/gems/1.8/gems/ actionpack-1.13.1/lib/action\_controller/deprecated\_dependencies.rb:13)

ActiveRecord instances load just fine but I get no indication that any  
caching is taking place. I get no output from my memcached-process,  
nothing in the rails logs and nothing on the console says anything  
about caching.

I guess that I have a config error somewhere or a version mismatch.

Here’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 my installed versions of the relevant gems:

rails (1.2.1,  
1.1.6)  
cached\_model (1.3.1,  
1.2.1)  
memcache-client (1.2.0,  
1.0.3)

I’ve done some googling but I’m at a loss about how to troubleshoot  
this further.

Any ideas?
