Skip to content

Commit ced6904

Browse files
authoredNov 2, 2016
Update README.md
1 parent 3b28f56 commit ced6904

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed
 

‎README.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Reduce cache size by [Redisson][2] SnappyCodec (see [snappy-java][snappy], [Fast
88

99
### Note
1010

11-
Redisson 2.5.0 has a known issue with ElasticacheServers config see https://github.com/redisson/redisson/pull/672 .
12-
1311
From 2.2.1 onwards Hibernate region naming (hibernate.cache.region_prefix) has been simplified to "hibernate".
1412

1513
hibernate-core 5.2.x based on Java 8, use hibernate-redis 2.2.0 or higher
@@ -26,7 +24,7 @@ add dependency
2624
<dependency>
2725
<groupId>com.github.debop</groupId>
2826
<artifactId>hibernate-redis</artifactId>
29-
<version>2.3.0</version>
27+
<version>2.3.2</version>
3028
</dependency>
3129
```
3230

@@ -51,9 +49,9 @@ Redisson support various codec (serializer, compression). you can choose other c
5149
</dependency>
5250
```
5351

54-
##### setup hibernate configuration
52+
##### Setup hibernate configuration
5553

56-
setup hibernate configuration (Note package name for hibernate 4 / hibernate 5 / hibernate52)
54+
Setup hibernate configuration (Note package name for hibernate 4 / hibernate 5 / hibernate52)
5755

5856
```java
5957
// Secondary Cache
@@ -62,20 +60,20 @@ props.put(Environment.USE_QUERY_CACHE, true);
6260
props.put(Environment.CACHE_REGION_FACTORY, org.hibernate.cache.redis.hibernate52.SingletonRedisRegionFactory.class.getName());
6361
props.put(Environment.CACHE_REGION_PREFIX, "hibernate");
6462

65-
// optional setting for second level cache statistics
63+
// Optional setting for second level cache statistics
6664
props.setProperty(Environment.GENERATE_STATISTICS, "true");
6765
props.setProperty(Environment.USE_STRUCTURED_CACHE, "true");
6866

69-
// for Hibernate 4
67+
// Hibernate 4
7068
props.setProperty(Environment.TRANSACTION_STRATEGY, JdbcTransactionFactory.class.getName());
7169

72-
// configuration for Redis that used by hibernate
70+
// Configuration for Redis that used by hibernate
7371
props.put(Environment.CACHE_PROVIDER_CONFIG, "hibernate-redis.properties");
7472
```
7573

7674
also same configuration for using Spring Framework or [Spring Data JPA][4]
7775

78-
### redis settings for hibernate-redis
76+
### Redis settings for hibernate-redis
7977

8078
sample for hibernate-redis.properties
8179

0 commit comments

Comments
 (0)
Please sign in to comment.