Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

documentation changes

  • Loading branch information...
commit a58975efa687d239e43626e178645ba41785df03 1 parent e13685d
Karl authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 README.markdown
View
11 README.markdown
@@ -16,6 +16,12 @@ Let's cache something for 1 minute
end
```
+Call it as a method on the module.
+
+```ruby
+ SimpleRedisCache.cache('hello') { 'world' }
+```
+
The above uses the default _Redis.new_ instance running on _127.0.0.1:6379_
Let's configure a different redis instance.
@@ -24,8 +30,5 @@ Let's configure a different redis instance.
SimpleRedisCache::Config.redis = Redis.new(:host => "10.0.1.1", :port => 6380)
```
-Call it as a method on the module.
+Initial benchmarks indicate this is faster than whatever you're doing to cache.
-```ruby
- SimpleRedisCache.cache('hello') { 'world' }
-```
Please sign in to comment.
Something went wrong with that request. Please try again.