From 1b8c6886f6d22f9c61e978b42d066dce91e334dc Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Thu, 14 Aug 2025 18:05:07 +0200 Subject: feat(config): rule grpc --- crates/configuration/src/state/cache_key.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/configuration/src/state/cache_key.rs') diff --git a/crates/configuration/src/state/cache_key.rs b/crates/configuration/src/state/cache_key.rs index a63b15d..a99700e 100644 --- a/crates/configuration/src/state/cache_key.rs +++ b/crates/configuration/src/state/cache_key.rs @@ -4,6 +4,7 @@ use warden_stack::redis::ToRedisArgs; pub enum CacheKey<'a> { ActiveRouting, Routing(&'a uuid::Uuid), + Rule { id: &'a str, version: &'a str }, } impl ToRedisArgs for CacheKey<'_> { @@ -14,6 +15,7 @@ impl ToRedisArgs for CacheKey<'_> { let value = match self { CacheKey::ActiveRouting => "routing.active".into(), CacheKey::Routing(uuid) => format!("routing.{uuid}"), + CacheKey::Rule { id, version } => format!("rule.{id}.{version}"), }; out.write_arg(value.as_bytes()); -- cgit v1.2.3