0g-storage-node/node/file_location_cache/src/lib.rs
2024-01-04 18:05:32 +08:00

21 lines
444 B
Rust

mod file_location_cache;
pub mod test_util;
pub use crate::file_location_cache::FileLocationCache;
pub struct Config {
pub max_entries_total: usize,
pub max_entries_per_file: usize,
pub entry_expiration_time_secs: u32,
}
impl Default for Config {
fn default() -> Self {
Config {
max_entries_total: 4096,
max_entries_per_file: 4,
entry_expiration_time_secs: 3600,
}
}
}