Skip to content

Commit

Permalink
JT-78303: Use soft references for cache by default
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-zatsepin committed Jan 16, 2024
1 parent d4dc12e commit c716585
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public PersistentEntityStoreConfig setMutable(boolean isMutable) {
* Default value is {@code 512}.
* <p>Mutable at runtime: yes
*
* @Deprectated this value is not used anymore in favor of global usage of soft references, see {@linkplain #ENTITY_ITERABLE_CACHE_SOFT_VALUES}.
* @deprecated this value is not used anymore in favor of global usage of soft references, see {@linkplain #ENTITY_ITERABLE_CACHE_SOFT_VALUES}.
*/
@Deprecated
public static final String ENTITY_ITERABLE_CACHE_MAX_SIZE_OF_DIRECT_VALUE = "exodus.entityStore.entityIterableCache.maxSizeOfDirectValue";
Expand Down Expand Up @@ -468,7 +468,7 @@ public PersistentEntityStoreConfig(@NotNull final ConfigurationStrategy strategy
new Pair(ENTITY_ITERABLE_CACHE_DEFERRED_DELAY, 2000),
new Pair(ENTITY_ITERABLE_CACHE_MAX_SIZE_OF_DIRECT_VALUE, 512),
new Pair(ENTITY_ITERABLE_CACHE_EXPIRE_AFTER_ACCESS_SECONDS, 300),
new Pair(ENTITY_ITERABLE_CACHE_SOFT_VALUES, false),
new Pair(ENTITY_ITERABLE_CACHE_SOFT_VALUES, true),
new Pair(ENTITY_ITERABLE_CACHE_USE_HUMAN_READABLE, false),
new Pair(ENTITY_ITERABLE_CACHE_HEAVY_QUERIES_CACHE_SIZE, 2048),
new Pair(ENTITY_ITERABLE_CACHE_HEAVY_ITERABLES_LIFE_SPAN, 60000L),
Expand Down

0 comments on commit c716585

Please sign in to comment.