Browse files

Merge pull request #14 from Spantree/master

Fixing docs to reflect proper withRedis usage
  • Loading branch information...
2 parents 3ba51fc + dc041ea commit 94fb726fa3471d813b1606703eb7a4c639456e72 @tednaleid tednaleid committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -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")

0 comments on commit 94fb726

Please sign in to comment.