没有驱逐政策的 Hazelcast 地图最大尺寸配置

Hazelcast map max-size configuration without eviction policy

在 hazelcast Map 配置中,如果我们将驱逐策略设置为 None 并使用 max-idle-seconds,time-to-live-seconds 如下所示,

<map name="simpleMap">
<backup-count>0</backup-count>
<max-idle-seconds>360</max-idle-seconds> <time-to-live-seconds>30</time-to-live-seconds>
<eviction-policy>NONE</eviction-policy>
<max-size>3000</max-size>
<eviction-percentage>30</eviction-percentage>
<merge-policy>com.hazelcast.map.merge.PutIfAbsentMapMergePolicy</merge-policy>

谁能解释一下,在这种情况下 max-size 是否有效?

配置 max-size 而不使用逐出策略不是有效配置。请检查说明 here.

If you want max-size to work, set the to a value other than NONE.