I am using infinispan 7.2.5 version to make in memory cache. to access that cache I am using Hotrod. So I have hotrod server running on cluster mode and that multiple client who can access server using hotrod client.
I am doing a putAll operation to put data into cache. now I have a requirement where we want to put everything or nothing in cache so what I mean here either putAll should be able to put all the data into cache or if it fail nothing should be added into cache. I was going through the documentation of the infinispan to check if putAll is atomic but as per the documentation it is not.
So my question is :
- How to make putAlll atomic to achieve requirement?
I was also thinking to make transactionMode cache but not sure if it solve my problem without impacting much on performance?
Any suggestion here will be appreciated.