Class QueryCacheStats
Diagnostic snapshot of QueryCache state. Surfaced via GetCacheStats() for the admin UI so operators can see what's actually living in cache without dumping values.
public sealed record QueryCacheStats : IEquatable<QueryCacheStats>
- Inheritance
-
QueryCacheStats
- Implements
- Inherited Members
Constructors
QueryCacheStats(int, IReadOnlyDictionary<string, int>, IReadOnlyDictionary<string, long>)
Diagnostic snapshot of QueryCache state. Surfaced via GetCacheStats() for the admin UI so operators can see what's actually living in cache without dumping values.
public QueryCacheStats(int TotalEntries, IReadOnlyDictionary<string, int> EntriesByTable, IReadOnlyDictionary<string, long> TableVersions)
Parameters
TotalEntriesintTotal entries in the underlying store, across all tables.
EntriesByTableIReadOnlyDictionary<string, int>Entry count grouped by tableName.
TableVersionsIReadOnlyDictionary<string, long>Per-table version counters. Bumped on every mutation; participates in the cache key so old entries become un-hittable on the read path.
Properties
EntriesByTable
Entry count grouped by tableName.
public IReadOnlyDictionary<string, int> EntriesByTable { get; init; }
Property Value
TableVersions
Per-table version counters. Bumped on every mutation; participates in the cache key so old entries become un-hittable on the read path.
public IReadOnlyDictionary<string, long> TableVersions { get; init; }
Property Value
TotalEntries
Total entries in the underlying store, across all tables.
public int TotalEntries { get; init; }