File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,16 @@ pub struct ReadAheadMetadataCache<F: MetadataFetch> {
9797
9898impl < F : MetadataFetch > ReadAheadMetadataCache < F > {
9999 /// Create a new EagerMetadataCache wrapping the given MetadataFetch
100- pub fn new ( inner : F , initial_size : u64 , increment_multiple : u64 ) -> AsyncTiffResult < Self > {
100+ pub fn new ( inner : F ) -> AsyncTiffResult < Self > {
101+ Self :: with_increment_configuration ( inner, 32 * 1024 , 2 )
102+ }
103+
104+ /// Create a new EagerMetadataCache with custom initial size and increment multiple
105+ pub fn with_increment_configuration (
106+ inner : F ,
107+ initial_size : u64 ,
108+ increment_multiple : u64 ,
109+ ) -> AsyncTiffResult < Self > {
101110 Ok ( Self {
102111 inner,
103112 cache : Arc :: new ( Mutex :: new ( SequentialCache :: new ( ) ) ) ,
You can’t perform that action at this time.
0 commit comments