Plugins You can find out about all the publicly available Grails plugins.

Redis Hibernate Cache Plugin

  • Tags: redis, hibernate, cache
  • Latest: 1.0
  • Last Updated: 13 November 2014
  • Grails version: 2.0 > *
0 vote
compile "org.grails.plugins:redis-hibernate-cache:1.0"

 Documentation  Source  Issues


Grails integration with Redis as a backend for Hibernate 2nd level cache


To install you need add the plugin into your BuildConfig.groovy

compile ":redis-hibernate-cache:1.0"

And also this repository to the list of repositories:

repositories {

mavenRepo "" }

This is necessary in order to download some dependencies that aren't in the main maven repositories.

After this you can configure your DataSource.groovy to use the cache:

hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.region.factory_class = 'org.hibernate.cache.redis.GrailsRedisRegionFactory'
    cache.region_prefix = "hibernate"