diff --git a/redisson-hibernate/README.md b/redisson-hibernate/README.md index ad750e5fb..2ea21570d 100644 --- a/redisson-hibernate/README.md +++ b/redisson-hibernate/README.md @@ -67,7 +67,7 @@ Usage ### 2. Specify hibernate cache settings -``` +```xml @@ -81,13 +81,17 @@ Usage ``` Redisson allows to define follow cache settings per entity, collection, naturalid, query and timestamp regions: + `eviction.max_entries` - max size of cache. Superfluous entries are evicted using LRU algorithm. `0` value means unbounded cache. Default value: 0 + `expiration.time_to_live` - time to live per cache entry in milliseconds. `0` value means this setting doesn't affect expiration. Default value: 0 + `expiration.max_idle_time` - max idle time per cache entry in milliseconds. `0` value means this setting doesn't affect expiration. Default value: 0 + Configuration examples: -``` +```xml @@ -113,4 +117,4 @@ Configuration examples: -``` \ No newline at end of file +```