From dc041eac9bc7a958e172599568e2414157a0bb3e Mon Sep 17 00:00:00 2001 From: Cedric Hurst Date: Tue, 10 Jul 2012 15:22:49 -0500 Subject: [PATCH] Fixing docs to reflect proper withRedis call --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 197a114..1824f31 100644 --- a/README.md +++ b/README.md @@ -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") }