Skip to content

Commit

Permalink
add rails instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Jul 10, 2012
1 parent f594161 commit df2d109
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit df2d109

Please sign in to comment.