public T add ( String key , T value ) { wlock . lock ( ) ; try { return map . put ( key , value ) ; } finally { wlock . unlock ( ) ; } }
Adds an entry to the cache evicting the earliest entry if necessary .