Skip to content
Browse files

add rails instructions

  • Loading branch information...
1 parent f594161 commit df2d109cb2e2d29653c8c16457a67f35a9289bf5 @grosser grosser committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.rdoc
View
6 README.rdoc
@@ -73,6 +73,12 @@ Note that the API is not the same as that of <b>Ruby-MemCache</b> or <b>memcache
$cache.delete 'test'
$cache.get 'test' #=> raises Memcached::NotFound
+== Rails
+
+ # config/environment.rb
+ require "memcached/rails"
+ config.cache_store = Memcached::Rails.new(:servers => ['127.0.0.1'])
+
== Pipelining
Pipelining updates is extremely effective in <b>memcached</b>, leading to more than 25x write throughput than the default settings. Use the following options to enable it:

0 comments on commit df2d109

Please sign in to comment.
Something went wrong with that request. Please try again.