Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add rails instructions

  • Loading branch information...
commit df2d109cb2e2d29653c8c16457a67f35a9289bf5 1 parent f594161
@grosser grosser authored
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:
Please sign in to comment.
Something went wrong with that request. Please try again.