Am using the below code to do an update to an element in the cache.
Cache cache = manager.getCache("myCache");
cache.put(new Element("k1", "v1"));
//updates "k1"
cache.put(new Element("k1", "v2"));
Is this thread safe or do we need to do anything beyond this for thread safety. Also from a performance perspective, every update results in a new Element. Is this a good approach?
Regards