Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
hooopo committed Dec 28, 2011
1 parent 48a2187 commit 60cc21a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -13,6 +13,14 @@ Write-Through: As objects are created, updated, and deleted, all of the caches a
# config/initializers/redis.rb
$redis = Redis.new
``````
Gemfile

```
gem "hiredis", "~> 0.3.1"
gem "redis", "~> 2.2.0", :require =>redis ["redis/connection/hiredis", "redis"]
gem "second_level_cache"gem, :git => "git@github.com:hooopo/second_level_cache.git"
```

在model里设置是否使用缓存:

``````ruby
Expand Down

0 comments on commit 60cc21a

Please sign in to comment.