Skip to content

Commit

Permalink
hmmm bad choice when just picking initializeDefaultMapConfig and thin…
Browse files Browse the repository at this point in the history
…king thats ok...

for those specific caches that I really really wanted to have a short-ish TTL
and that it didnt set...
initializeDomainMapConfig on the other hand only sets the TTL. that is good enough
  • Loading branch information
frostmarked committed Aug 17, 2021
1 parent b00f2aa commit 87a62c2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ public HazelcastInstance hazelcastInstance(JHipsterProperties jHipsterProperties
}
config.getMapConfigs().put("default", initializeDefaultMapConfig(jHipsterProperties));

MapConfig cowMapConfig = initializeDefaultMapConfig(jHipsterProperties);
MapConfig cowMapConfig = initializeDomainMapConfig(jHipsterProperties);
config.getMapConfigs().put(CACHE_COWS, cowMapConfig);

MapConfig cowPicturesMapConfig = initializeDefaultMapConfig(jHipsterProperties);
MapConfig cowPicturesMapConfig = initializeDomainMapConfig(jHipsterProperties);
config.getMapConfigs().put(CACHE_COW_PICTURES, cowPicturesMapConfig);

MapConfig lineagesMapConfig = initializeDefaultMapConfig(jHipsterProperties);
MapConfig lineagesMapConfig = initializeDomainMapConfig(jHipsterProperties);
config.getMapConfigs().put(CACHE_LINEAGES, lineagesMapConfig);

// Full reference is available at: https://docs.hazelcast.org/docs/management-center/3.9/manual/html/Deploying_and_Starting.html
Expand Down

0 comments on commit 87a62c2

Please sign in to comment.