Skip to content

Commit

Permalink
Try to fix the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleym1972 committed Jul 29, 2011
1 parent bd14908 commit f9722c1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.markdown
Expand Up @@ -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
Expand Down

0 comments on commit f9722c1

Please sign in to comment.