MCPcopy Create free account
hub / github.com/apache/datafusion / update_cache_limit

Method update_cache_limit

datafusion/execution/src/cache/list_files_cache.rs:361–365  ·  view source on GitHub ↗
(&self, limit: usize)

Source from the content-addressed store, hash-verified

359 }
360
361 fn update_cache_limit(&self, limit: usize) {
362 let mut state = self.state.lock().unwrap();
363 state.memory_limit = limit;
364 state.evict_entries();
365 }
366
367 fn update_cache_ttl(&self, ttl: Option<Duration>) {
368 let mut state = self.state.lock().unwrap();

Callers 2

try_newMethod · 0.45
test_cache_limit_resizeFunction · 0.45

Calls 1

evict_entriesMethod · 0.45

Tested by 1

test_cache_limit_resizeFunction · 0.36