<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="10.0.12" />

Microsoft.Extensions.Caching.Memory.MemoryCacheStatistics

public class MemoryCacheStatistics
Holds a snapshot of statistics for a memory cache.
public long CurrentEntryCount { get; set; }

Gets the number of ICacheEntry instances currently in the memory cache.

public long? CurrentEstimatedSize { get; set; }

Gets an estimated sum of all the Size values currently in the memory cache.

public long TotalHits { get; set; }

Gets the total number of cache hits.

public long TotalMisses { get; set; }

Gets the total number of cache misses.

Initializes an instance of MemoryCacheStatistics.