Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HazelcastLocalCacheRegionFactory / map config / eviction size="0" (turn off specific cache via hazelcast config not possible) #251

Open
qeepcologne opened this issue Feb 12, 2021 · 0 comments

Comments

@qeepcologne
Copy link

(summary of hazelcast/hazelcast#18158)

I am using hazelcast-hibernate53:2.2.0 with HazelcastLocalCacheRegionFactory and set config like that:

<map name="de.k2interactive.qeep.users.db.PluginDataDto">
    <eviction size="0" />
</map>

I want to turn off the cache only for these specific dto and only in that hazelcast config,
use_second_level_cache=false or removing the cache annotation is also not the solution
(we we use the same dto class in a different contexts with multiple datasources)

@enozcan told me that eviction-size=0 ends up with Integer.MAX_VALUE.
This is not documented in any way in EvictionConfig.

Is it possible to change that and use another magic value (-1?) for unlimited size?
Or at least document this special behaviour in the javadocs?

If there is another option to turn off specific cache via hazelcast config, please let me know.

@qeepcologne qeepcologne changed the title HazelcastLocalCacheRegionFactory / map config / eviction size="0" HazelcastLocalCacheRegionFactory / map config / eviction size="0" (turn off cache via hazelcast config not working) Feb 12, 2021
@qeepcologne qeepcologne changed the title HazelcastLocalCacheRegionFactory / map config / eviction size="0" (turn off cache via hazelcast config not working) HazelcastLocalCacheRegionFactory / map config / eviction size="0" (turn off specific cache via hazelcast config not possible) Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant