Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Try to fix the readme

  • Loading branch information...
commit f9722c18e664b8619e1f17a8eee55161a1139f24 1 parent bd14908
@ashleym1972 ashleym1972 authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 README.markdown
View
8 README.markdown
@@ -133,9 +133,11 @@ In most cases locks are unnecessary; the transactional Memcached client will tak
Sometimes your code will request the same cache key twice in one request. You can avoid a round trip to the Memcached server by using a local, per-request cache. Add this to your initializer:
- $local = Cash::Local.new($memcache)
- $cache = Cash::Transactional.new($local, $lock)
-
+ $memcache = MemcachedWrapper.new(config[:servers].gsub(' ', '').split(','), config)
+ $local = Cash::Local.new($memcache)
+ $lock = Cash::Lock.new($memcache)
+ $cache = Cash::Transactional.new($local, $lock)
+
## Installation ##
#### Step 0: Install MemCached
Please sign in to comment.
Something went wrong with that request. Please try again.