|
|
|
@ -4,7 +4,7 @@ Implements [Hibernate 2nd level Cache](https://docs.jboss.org/hibernate/orm/5.4/
|
|
|
|
|
Supports all Hibernate cache strategies: `READ_ONLY`, `NONSTRICT_READ_WRITE`, `READ_WRITE` and `TRANSACTIONAL`.
|
|
|
|
|
It's recommended to use FST or Snappy as [codec](https://github.com/redisson/redisson/wiki/4.-data-serialization).
|
|
|
|
|
|
|
|
|
|
Compatible with Hibernate 4.x, 5.x. (5.3.0, 5.3.1 and 5.3.2 versions aren't supported)
|
|
|
|
|
Compatible with Hibernate 5.3.3+
|
|
|
|
|
|
|
|
|
|
Redisson provides various Hibernate Cache factories including those with features below:
|
|
|
|
|
|
|
|
|
@ -30,29 +30,17 @@ Maven
|
|
|
|
|
```xml
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.redisson</groupId>
|
|
|
|
|
<!-- for Hibernate v4.x -->
|
|
|
|
|
<artifactId>redisson-hibernate-4</artifactId>
|
|
|
|
|
<!-- for Hibernate v5.0.x - v5.1.x -->
|
|
|
|
|
<artifactId>redisson-hibernate-5</artifactId>
|
|
|
|
|
<!-- for Hibernate v5.2.x -->
|
|
|
|
|
<artifactId>redisson-hibernate-52</artifactId>
|
|
|
|
|
<!-- for Hibernate v5.3.3+ - v5.4.x -->
|
|
|
|
|
<artifactId>redisson-hibernate-53</artifactId>
|
|
|
|
|
<version>3.11.5</version>
|
|
|
|
|
<version>3.11.6</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Gradle
|
|
|
|
|
|
|
|
|
|
```groovy
|
|
|
|
|
// for Hibernate v4.x
|
|
|
|
|
compile 'org.redisson:redisson-hibernate-4:3.11.5'
|
|
|
|
|
// for Hibernate v5.0.x - v5.1.x
|
|
|
|
|
compile 'org.redisson:redisson-hibernate-5:3.11.5'
|
|
|
|
|
// for Hibernate v5.2.x
|
|
|
|
|
compile 'org.redisson:redisson-hibernate-52:3.11.5'
|
|
|
|
|
// for Hibernate v5.3.3+ - v5.4.x
|
|
|
|
|
compile 'org.redisson:redisson-hibernate-53:3.11.5'
|
|
|
|
|
compile 'org.redisson:redisson-hibernate-53:3.11.6'
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 2. Specify hibernate cache settings
|
|
|
|
|