feat: 优化访问数量统计,采用本地缓存+分布式缓存+数据库

This commit is contained in:
橙子
2024-10-15 23:07:12 +08:00
parent c880f32d33
commit ae2cc7ad9b
4 changed files with 89 additions and 5 deletions

View File

@@ -81,7 +81,7 @@ public class AccessLogStoreJob : QuartzBackgroundWorkerBase
}
//删除前一天的缓存
await RedisClient.DelAsync($"{CacheKeyPrefix}:{AccessLogCacheConst.Key}:{DateTime.Now.Date.AddDays(-1)}");
await RedisClient.DelAsync($"{CacheKeyPrefix}:{AccessLogCacheConst.Key}:{DateTime.Now.Date.AddDays(-1).ToString("yyyyMMdd")}");
}
}
}