I'm using Spring @Cacheable annotation with Hazelcast 2.1 and Spring 3.1.
@Cacheable("testCache")
public MyObject testMethod(int testParam);
//After method call
MyObject test = Hazelcast.getMap("testCache").get("key")
test.setSomeProp() //This line causes an update to the cache since it is reference.
Is it possible to return a clone/copy of the cached value from map instead of reference from Hazelcast.getMap() ?
Namely I want a copyOnRead functionality like in EhCache. See EhCache Documentation