Table of Contents

Class QueryCacheStats

Namespace
CL.MySQL2.Services
Assembly
CL.MySQL2.dll

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

TotalEntries int

Total entries in the underlying store, across all tables.

EntriesByTable IReadOnlyDictionary<string, int>

Entry count grouped by tableName.

TableVersions IReadOnlyDictionary<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

IReadOnlyDictionary<string, int>

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

IReadOnlyDictionary<string, long>

TotalEntries

Total entries in the underlying store, across all tables.

public int TotalEntries { get; init; }

Property Value

int