in src/config.rs [360:386]
fn into_fallback(self) -> (Option<CacheType>, DiskCacheConfig) {
let CacheConfigs {
azure,
disk,
gcs,
gha,
memcached,
redis,
s3,
webdav,
oss,
} = self;
let cache_type = s3
.map(CacheType::S3)
.or_else(|| redis.map(CacheType::Redis))
.or_else(|| memcached.map(CacheType::Memcached))
.or_else(|| gcs.map(CacheType::GCS))
.or_else(|| gha.map(CacheType::GHA))
.or_else(|| azure.map(CacheType::Azure))
.or_else(|| webdav.map(CacheType::Webdav))
.or_else(|| oss.map(CacheType::OSS));
let fallback = disk.unwrap_or_default();
(cache_type, fallback)
}