grails-plugins/grails-redis — pull request #12 by johnrengelman (2012-05-17 20:04:46+00:00)
Title: Support for redis database parameter

This pull request adds support fo the redis database parameter that was added in Jedis 2.1. This allows an application to specify the grails.redis.database value which passes the value to the JedisPool bean. Updates made:
1) Update to Jedis 2.1 which provides the database argument in the JedisPool constructor (gets passed to JedisFactory
2) Modify the doWithSpring closure to get the database property from grails.redis.database or use the default as defined in the Protocol.DEFAULT_DATABASE
3) Modify the declaration for redisPool to pass the database parameter value

Additionally, I found that when I tried to install redis:1.3 into a Grails 1.3.8 application, I would receive a compiler error. This is due to the annotation classes using a syntax that is only supported by Groovy 1.8 or higher, i.e. MemoizeList.groovy
``
@interface MemoizeList {
Class value() default {true}:
...
``
The definition of `value()` is not support in Groovy 1.7.8.