MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / Config

Class Config

redis-server/src/main.rs:249–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247
248#[derive(StructOpt)]
249struct Config {
250 #[structopt(default_value = "17179869184", env = "CACHE_SIZE")]
251 /// Disk size for cache content in bytes. Defaults to 16GiB
252 cache_size: usize,
253 #[structopt(
254 parse(from_os_str),
255 default_value = "/var/cache/redis/",
256 env = "CACHE_PATH"
257 )]
258 /// Path where cache content should be stored
259 cache_path: PathBuf,
260 #[structopt(default_value = "127.0.0.1:6379", env = "BIND_ADDRESS", long = "addr")]
261 /// Address to listen to for http
262 bind_addr: String,
263 #[structopt(short = "Z", long = "durable_fs", env = "DURABLE_FS")]
264 /// Is this running on a consistent and checksummed fs? If yes, then we can skip
265 /// internal crc32c sums on get().
266 durable_fs: bool,
267}
268
269async fn do_main() {
270 debug!("Starting");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected