public void restore ( CachedObject object ) { writeLock . lock ( ) ; try { int i = object . getPos ( ) ; cache . put ( i , object ) ; // was previously used for text tables if ( storeOnInsert ) { saveRow ( object ) ; } } finally { writeLock . unlock ( ) ; } }
For a CacheObject that had been previously released from the cache . A new version is introduced using the preallocated space for the object .