Skip to content

Commit

Permalink
Merge pull request #14 from Spantree/master
Browse files Browse the repository at this point in the history
Fixing docs to reflect proper withRedis usage
  • Loading branch information
tednaleid committed Jul 10, 2012
2 parents 3ba51fc + dc041ea commit 94fb726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -70,7 +70,7 @@ The service overrides `propertyMissing` and `methodMissing` to delegate any miss
It also provides a template method called `withRedis` that takes a closure as a parameter. It passes a Jedis connection object to Redis into the closure. The template method automatically gets an object out of the pool and ensures that it gets returned to the pool after the closure finishes (even if there's an error).

redisService.withRedis {
redisService.withRedis { Jedis redis ->
redis.set("foo", "bar")
}

Expand Down

0 comments on commit 94fb726

Please sign in to comment.