public V put ( final K key , final V value ) { synchronized ( _map ) { final ManagedItem < V > previous = _map . put ( key , new ManagedItem < V > ( value , System . currentTimeMillis ( ) ) ) ; while ( _map . size ( ) > _size ) { _map . remove ( _map . keySet ( ) . iterator ( ) . next ( ) ) ; } return previous != null ? previous . _value : null ; } }
Put the key and value .