Show Navigation

hazelgrails

Hazelcast Grails Integration

Owner: enesakar | 1.0.2 | Apr 18, 2016 | Package | Issues | Source | License: Apache-2.0


dependencies {
    compile 'org.grails.plugins:hazelgrails:1.0.2'
}

            

Hazelcast plugin for grails

Update (4/2016): Hazelcast version is upgraded to 3.6.2.

How to Install Plugin

Just add the following dependency under the dependencies block in your project's build.gradle:

compile "org.grails.plugins:hazelgrails:1.0.2"

Configuration

You can configure hazelcast in details:

For available options have a look at: http://docs.hazelcast.org/docs/3.6/manual/html-single/index.html#hazelcast-configuration

To use Hazelcast as Hibernate 2nd Level Cache, add the following line to application.groovy:

cache.region.factory_class = 'com.hazelcast.hibernate.HazelcastCacheRegionFactory'

For more documentation:

See: http://blog.hazelcast.com/distribute-grails-with-hazelcast/

For Grails3 Test application:

See: [https://github.com/rohitbishnoi/hazelcast-test] (https://github.com/rohitbishnoi/hazelcast-test)