We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Repository::object_cache_size()
Some(0)
1 parent 35415c5 commit d3b9740Copy full SHA for d3b9740
gix/src/repository/cache.rs
@@ -11,6 +11,7 @@ impl crate::Repository {
11
pub fn object_cache_size(&mut self, bytes: impl Into<Option<usize>>) {
12
let bytes = bytes.into();
13
match bytes {
14
+ Some(bytes) if bytes == 0 => self.objects.unset_object_cache(),
15
Some(bytes) => self
16
.objects
17
.set_object_cache(move || Box::new(crate::object::cache::MemoryCappedHashmap::new(bytes))),
0 commit comments