public void clear ( Object key ) { Object removed ; if ( isCachingEnabled ( ) ) { synchronized ( mirror ) { synchronized ( data ) { removed = data . remove ( key ) ; mirror . remove ( key ) ; } } System . out . println ( new LogEntry ( "object with key " + key + ( removed == null ? " NOT" : "" ) + " removed from cache" ) ) ; } }
Removes an object from cache .