Metrics for cache

This commit is contained in:
Ara Sadoyan
2026-10-23 19:05:01 +02:00
parent 72756a00dd
commit e9143e8f99
4 changed files with 21 additions and 2 deletions
-1
View File
@@ -107,7 +107,6 @@ impl Storage for RedisCache {
async fn lookup(&'static self, key: &CacheKey, _trace: &SpanHandle) -> Result<Option<(CacheMeta, HitHandler)>> {
let base = Self::make_key(key);
// Pre-allocate exact capacities to prevent reallocations
let mut meta_key = String::with_capacity(base.len() + 5);
meta_key.push_str(&base);
meta_key.push_str(":meta");