ConcurrentHashMap doesn’t shield from “data races”. It just keeps the HashMap data structure thread safe
http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Sun, Feb 26, 2012 at 11:01 PM, Michael André Pearce <[email protected]> wrote: > Its as safe as doing a containsKey on ConcurrentHashMap and then doing an > operation. > > > On 26 Feb 2012, at 21:53, Simone Tripodi wrote: > >> that's not what I said, what I'm saying is that *in DM*, given the >> actual implementation, would be wrong - other cache solutions maybe >> have smarter keys management. >> >> just for the record: Memcached is one of the production ready cache >> solution that doesn't have a method for checking a key exists in the >> storage >> <http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt> >
