From 22f5a0a057d6cc2da63aa08c400da0ca89aedaab Mon Sep 17 00:00:00 2001 From: Ari Lotter Date: Tue, 23 Jan 2024 13:08:05 -0500 Subject: [PATCH] add default ttl of 0 to fix breaking change (#2058) --- src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.rs b/src/config.rs index 036e2e60..d5b2a1d8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -236,6 +236,7 @@ pub struct RedisCacheConfig { /// the ttl time in seconds. /// /// Default to infinity (0) + #[serde(default)] pub ttl: u64, }