From 2fc36cda36f9cc01145819c1d07c0fd49784cdf3 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Sun, 28 Jul 2024 14:39:12 +0300 Subject: [PATCH] Update README.md --- redisson-micronaut/README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/redisson-micronaut/README.md b/redisson-micronaut/README.md index d754f9b54..4e41acc8b 100644 --- a/redisson-micronaut/README.md +++ b/redisson-micronaut/README.md @@ -385,11 +385,15 @@ redisson: max-size: 1000 codec: org.redisson.codec.Kryo5Codec store-сache-miss: true - eviction-policy: `WEAK` + eviction-policy: `LFU` cache-size: 5000 + time-to-live: 2s + max-idle: 1s my-cache2: expire-after-write: 200s expire-after-access: 30s + time-to-live: 10s + max-idle: 5s ``` @@ -494,14 +498,14 @@ _This feature is available only in [Redisson PRO](https://redisson.pro)_ | | | |-|-| |Setting name| `redisson.local-caches.[CACHE_NAME].time-to-live` | -|Type| `java.lang.String` | +|Type| `java.time.Duration` | |Description| Time to live duration of each map entry in local cache. If value equals to 0 then timeout is not applied. | |Default value| `0` | | | | |-|-| |Setting name| `redisson.local-caches.[CACHE_NAME].max-idle` | -|Type| `java.lang.String` | +|Type| `java.time.Duration` | |Description| Defines max idle time duration of each map entry in local cache. If value equals to 0 then timeout is not applied. | |Default value| `0` | @@ -515,7 +519,7 @@ _This feature is available only in [Redisson PRO](https://redisson.pro)_ | | | |-|-| |Setting name| `redisson.local-caches.[CACHE_NAME].store-сache-miss` | -|Type| `java.lang.String` | +|Type| `java.lang.Boolean` | |Description| Defines whether to store a cache miss into the local cache. | |Default value| `false` | @@ -533,11 +537,17 @@ redisson: max-size: 1000 codec: org.redisson.codec.Kryo5Codec store-сache-miss: true - eviction-policy: `WEAK` + eviction-policy: `LFU` cache-size: 5000 + time-to-live: 1s + max-idle: 1s my-cache2: expire-after-write: 200s expire-after-access: 30s + eviction-policy: `LFU` + cache-size: 5000 + time-to-live: 10s + max-idle: 5s ```