duck-read-cache-fs
duck-read-cache-fs copied to clipboard
Provide a config registry to store all config settings
Is your feature request related to a problem? Please describe. In the past, we've missed to reset a few configurations for a few times.
Describe the solution you'd like https://github.com/dentiny/duck-read-cache-fs/blob/a8b172e68b36a55b6147ce0946e716484a56ec75/src/cache_filesystem_config.cpp#L82-L91
We manually reset all fields, but it's easy to forget; so we should better create a registry to store a configuration, its default value and current value.
Describe alternatives you've considered N/A
Additional context N/A