Merge branch 'master' of github.com:redisson/redisson

pull/2637/head
Nikita Koksharov 5 years ago
commit 4e3c819f82

@ -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 5.3.3+ up to 5.4.x
Compatible with Hibernate 5.2.x and 5.3.3+ up to 5.4.x
Redisson provides various Hibernate Cache factories including those with features below:
@ -30,17 +30,21 @@ Maven
```xml
<dependency>
<groupId>org.redisson</groupId>
<!-- 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.12.2</version>
<version>3.12.3</version>
</dependency>
```
Gradle
```groovy
// for Hibernate v5.2.x
compile 'org.redisson:redisson-hibernate-52:3.12.3'
// for Hibernate v5.3.3+ - v5.4.x
compile 'org.redisson:redisson-hibernate-53:3.12.2'
compile 'org.redisson:redisson-hibernate-53:3.12.3'
```
### 2. Specify hibernate cache settings
@ -93,6 +97,8 @@ By default each Region Factory creates own Redisson instance. For multiple appli
`hibernate.cache.redisson.[REGION_NAME].expiration.max_idle_time` - max idle time per cache entry in Redis. Defined in milliseconds. `0` value means this setting doesn't affect expiration. Default value: 0
`hibernate.cache.redisson.[REGION_NAME].localcache.cache_provider` - Defines Cache provider used as local cache store. REDISSON and CAFFEINE providers are available. Default value: `REDISSON`
`hibernate.cache.redisson.[REGION_NAME].localcache.max_idle_time` - max idle time per entry in local cache. Defined in milliseconds. `0` value means this setting doesn't affect expiration. Default value: 0
`hibernate.cache.redisson.[REGION_NAME].localcache.time_to_live` - time to live per entry in local cache. Defined in milliseconds. `0` value means this setting doesn't affect expiration. Default value: 0

Loading…
Cancel
Save