Add cache invalidation

This commit is contained in:
Josh-Heaps
2026-03-06 17:05:48 -07:00
parent 8043eee4cc
commit 99a9474ef7
6 changed files with 57 additions and 3 deletions
@@ -84,5 +84,11 @@ public class BlogService : IBlogService
return result;
}
public void ClearCache()
{
_cache.Clear();
_logger.LogInformation("Blog cache cleared");
}
private record CacheEntry(object Value, DateTime ExpiresAt);
}