Search This Blog

Thursday, July 18, 2013

Hazelcast Notes (Map.put and Mapstore.load; write-back and bulk persistence methods)


Remember if you have a map that is backed by database the calls to Map.put will issue
Mapstore.load as the put should return the old value.

You can use Map.set to circumvent this behavior; the same goes for remove and delete.

Also note, that for write-back persistence MapStore.store and MapStore.load methods might be used if there are only some items to persist.