synchronized void put ( int key , CachedObject row ) { int storageSize = row . getStorageSize ( ) ; if ( size ( ) >= capacity || storageSize + cacheBytesLength > bytesCapacity ) { cleanUp ( ) ; } if ( accessCount == Integer . MAX_VALUE ) { super . resetAccessCount ( ) ; } super . addOrRemove ( key , row , false ) ; row . setInMemory ( true ) ; cacheBytesLength += storageSize ; }
Adds a row to the cache .