feat(tiered): allow insecure Redis connections with environment variable
ZhenYi committed
Modified lib/cache/src/tiered.rs lib/cache/src/tiered.rs +3 −0 View lib/cache/src/tiered.rs
@@ -18,6 +18,9 @@
1818
1919impl CacheClient {
2020 pub async fn new(config: &CacheConfig) -> Result<Self, CacheError> {
21 unsafe {
22 std::env::set_var("OXCACHE_ALLOW_INSECURE_REDIS", "I_UNDERSTAND_THE_RISKS");
23 }
2124 config.validate().map_err(CacheError::InvalidConfig)?;
2225
2326 let l1 = build_l1(config)?;