| 247 | |
| 248 | #[derive(StructOpt)] |
| 249 | struct 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 | |
| 269 | async fn do_main() { |
| 270 | debug!("Starting"); |
nothing calls this directly
no outgoing calls
no test coverage detected