# Memcached and Rails 3

**URL:** <https://www.ruby-forum.com/t/memcached-and-rails-3/188423>\
**Category:** Rails\
**Created:** [May 11, 2010, 6:57pm UTC](https://www.ruby-forum.com/t/memcached-and-rails-3/188423 "2010-05-11T18:57:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![niczm25](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ce73a5/32.png) [@niczm25](https://www.ruby-forum.com/u/niczm25)\
**Post date:** [May 11, 2010, 6:57pm UTC](https://www.ruby-forum.com/t/memcached-and-rails-3/188423/1 "2010-05-11T18:57:27Z")

</div>

I am porting a v2 app to v3 and hitting an issue with configuring  
memcached as the cache store via:

```
config.cache_store = :mem_cache_store, Memcached::Rails.new

```

In the new version this generates:

```
/Users/neil/code/gli/config/environments/development.rb:20:in

```

`block in \<top (required)\>’: uninitialized constant  
Gli::Application::Memcached (NameError)

I have memcached in my Gemfile

Does anyone know how to correctly configure this?
