@ -797,78 +797,78 @@ _Settings below are available only in [Redisson PRO](https://redisson.pro) editi
Follow settings are available per JCache instance:
Follow settings are available per JCache instance:
| | |
|-|-|
Parameter name: **fallback**
|Parameter| **`fallback`** |
Default value: `false`
|Description| Skip errors if Redis or Valkey cache is unavailable |
Description: Skip errors if Redis or Valkey cache is unavailable.
|Default value| `false` |
Parameter name: **implementation**
| | |
Default value: `cache`
|-|-|
Description: Cache implementation. Available values:
|Parameter| **`implementation`** |
|Description| Cache implementation. |
* `cache` - implementation with scripted eviction
|Default value| `cache` |
* `cache-v2` - implementation with advanced eviction
|<br/>`cache` - implementation with scripted eviction
* `native-cache` - implementation with native eviction
<br/>`cache-v2` - implementation with advanced eviction
* `clustered-native-cache` - implementation with data partitioning and native eviction
<br/>`native-cache` - implementation with native eviction
* `local-cache` - implementation with local cache support and scripted eviction
<br/>`clustered-native-cache` - implementation with data partitioning and native eviction
* `clustered-local-cache` - implementation with data partitioning, local cache support and scripted eviction
<br/>`local-cache` - implementation with local cache support and scripted eviction
* `clustered-cache` - implementation with data partitioning and scripted eviction
<br/>`clustered-local-cache` - implementation with data partitioning, local cache support and scripted eviction
<br/>`clustered-cache` - implementation with data partitioning and scripted eviction|
Parameter name: **localcache.store_cache_miss**
Default value: `false`
| | |
Description: Defines whether to store a cache miss into the local cache.
|-|-|
|Parameter| **`localcache.store_cache_miss`** |
Parameter name: **localcache.cache_provider**
|Description| Defines whether to store a cache miss into the local cache. |
Default value: `REDISSON`
|Default value| `false` |
Description: Defines a cache provider used as local cache store. Available values:
| | |
* `REDISSON`
|-|-|
* `CAFFEINE`
|Parameter| **`localcache.cache_provider`** |
|Description| Cache provider used as local cache store.<br/>`REDISSON` and `CAFFEINE` providers are available. |
Parameter name: **localcache.store_mode**
|Default value| `REDISSON` |
Default value: `LOCALCACHE`
Description: Store mode of cache data. Available values:
| | |
|-|-|
* `LOCALCACHE` - store data in local cache only and use Redis or Valkey only for data update/invalidation
|Parameter| **`localcache.store_mode`** |
* `LOCALCACHE_REDIS` - store data in both Redis or Valkey and local cache
|Description| Store mode of cache data.<br/>`LOCALCACHE` - store data in local cache only and use Redis or Valkey only for data update/invalidation<br/>`LOCALCACHE_REDIS` - store data in both Redis or Valkey and local cache |
|Default value| `LOCALCACHE` |
Parameter name: **localcache.max_idle_time**
Default value: `0`
| | |
Description: Max idle time per entry in local cache. Defined in milliseconds. `0` value means this setting doesn't affect expiration.
|-|-|
|Parameter| **`localcache.max_idle_time`** |
Parameter name: **localcache.time_to_live**
|Description| Max idle time per entry in local cache. Defined in milliseconds.<br/>`0` value means this setting doesn't affect expiration |
Default value: `0`
|Default value| `0` |
Description: Time to live per entry in local cache. Defined in milliseconds.<br/>`0` value means this setting doesn't affect expiration.
| | |
Parameter name: **localcache.eviction_policy**
|-|-|
Default value: `NONE`
|Parameter| **`localcache.time_to_live`** |
Description: Eviction policy applied to local cache entries when cache size limit reached. Available values:
|Description| Time to live per entry in local cache. Defined in milliseconds.<br/>`0` value means this setting doesn't affect expiration |
|Default value| `0` |
* `LFU` - Counts how often an item was requested. Those that are used least often are discarded first.
* `LRU` - Discards the least recently used items first
| | |
* `SOFT` - Uses weak references, entries are removed by GC
|-|-|
* `WEAK` - Uses soft references, entries are removed by GC
|Parameter| **`localcache.eviction_policy`** |
* `NONE` - No eviction
|Description| Eviction policy applied to local cache entries when cache size limit reached.<br/>`LFU`, `LRU`, `SOFT`, `WEAK` and `NONE` policies are available. |
|Default value| `NONE` |
Parameter name: **localcache.sync_strategy**
Default value: `INVALIDATE`
| | |
Description: Sync strategy used to synchronize local cache changes across all instances. Available values:
|-|-|
|Parameter| **`localcache.sync_strategy`** |
* `INVALIDATE` - Invalidate cache entry across all LocalCachedMap instances on map entry change
|Description| Sync strategy used to synchronize local cache changes across all instances.<br/>`INVALIDATE` - Invalidate cache entry across all LocalCachedMap instances on map entry change<br/>`UPDATE` - Update cache entry across all LocalCachedMap instances on map entry change<br/>`NONE` - No synchronizations on map changes |
* `UPDATE` - Update cache entry across all LocalCachedMap instances on map entry change
Description: Reconnection strategy used to load missed local cache updates through Hibernate during any connection failures to Redis.
|Description| Reconnection strategy used to load missed local cache updates through Hibernate during any connection failures to Redis.<br/>`CLEAR` - Clear local cache if map instance has been disconnected for a while<br/>`LOAD` - Store invalidated entry hash in invalidation log for 10 minutes. Cache keys for stored invalidated entry hashes will be removed if LocalCachedMap instance has been disconnected less than 10 minutes or whole cache will be cleaned otherwise<br/>`NONE` - No reconnection handling |
|Default value| `NONE` |
* `CLEAR` - Clear local cache if map instance has been disconnected for a while
* `LOAD` - Store invalidated entry hash in invalidation log for 10 minutes. Cache keys for stored invalidated entry hashes will be removed if LocalCachedMap instance has been disconnected less than 10 minutes or whole cache will be cleaned otherwise
| | |
* `NONE` - No reconnection handling
|-|-|
|Parameter| **`localcache.size`** |
Parameter name: **localcache.size**
|Description| Max size of local cache. Superfluous entries in Redis or Valkey are evicted using defined eviction policy.<br/>`0` value means unbounded cache. |
Default value: `0`
|Default value| `0` |
Description: Max size of local cache. Superfluous entries in Redis or Valkey are evicted using defined eviction policy. `0` value means unbounded cache.