diff options
author | rtkay123 <dev@kanjala.com> | 2025-08-14 18:05:07 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-08-14 18:05:07 +0200 |
commit | 1b8c6886f6d22f9c61e978b42d066dce91e334dc (patch) | |
tree | 468fae725d2464baac9b27d6a02f67f24e3eeb9f /crates/configuration/src/state/cache_key.rs | |
parent | 600c7a1942c06c0f7a0ae87448595057206bf324 (diff) | |
download | warden-1b8c6886f6d22f9c61e978b42d066dce91e334dc.tar.bz2 warden-1b8c6886f6d22f9c61e978b42d066dce91e334dc.zip |
feat(config): rule grpc
Diffstat (limited to 'crates/configuration/src/state/cache_key.rs')
-rw-r--r-- | crates/configuration/src/state/cache_key.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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()); |