grails-redis icon indicating copy to clipboard operation
grails-redis copied to clipboard

Overriding connection and pool settings with custom defaults

Open raffian opened this issue 11 years ago • 0 comments

Is there any easy way to override connection/pool settings using something like this?

grails.redis.defaults = {
    timeout 5000
    maxTotal = 10
    pool.defaults = {
        testWhileIdle  true
    }  
}

We plan to package this plugin in a reusable service; users are required to provide a redis host name only; the remaining configuration is all custom defaulted based on our environment, and our defaults differ from the plugin's defaults.

raffian avatar Oct 01 '14 02:10 raffian