mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-01-24 14:05:17 +00:00
21 lines
444 B
Rust
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,
|
|
}
|
|
}
|
|
}
|