Skip to content
Clone

feat(tiered): allow insecure Redis connections with environment variable

ZhenYi committed
parent c0fae98 commit 092c8d4 Browse files

1 file changed

+3 −0

Modified lib/cache/src/tiered.rs 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)?;