javahazelcasthazelcast-imap

Creating multiple maps in hazelcast


I am using Hazelcast 3.8.1

I already have one map(<map name="default">) configured and want to add a new(separate) map to the instances.

Questions:

Thanks.


Solution

  • Yes, you can define as many maps as you want in the configs. Moreover, you can use wildcards to define a config for multiple maps at once. Once you do a hazelcastInstance.getmap("myMap") it will fetch the config with the name "myMap".