tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc
// Remove blocks from the cache until we do not exceed our maximum size.
Remove blocks from the cache until we do not exceed our maximum size.
Remove blocks from the cache until we do not exceed our maximum size .
void RamFileBlockCache::Trim() {
  while (!lru_list_.empty() && cache_size_ > max_bytes_) {
    RemoveBlock(block_map_.find(lru_list_.back()));
  }
}
void RamFileBlockCache :: Trim ( ) { while ( ! lru_list_ . empty ( ) && cache_size_ > max_bytes_ ) { RemoveBlock ( block_map_ . find ( lru_list_ . back ( ) ) ) ; } }
Remove blocks from the cache until we do not exceed our maximum size.
Remove blocks from the cache until we do not exceed our maximum size .