Share via


IMemoryCache.GetCurrentStatistics Method

Definition

Gets a snapshot of the cache statistics if available.

public:
 virtual Microsoft::Extensions::Caching::Memory::MemoryCacheStatistics ^ GetCurrentStatistics();
public virtual Microsoft.Extensions.Caching.Memory.MemoryCacheStatistics? GetCurrentStatistics ();
abstract member GetCurrentStatistics : unit -> Microsoft.Extensions.Caching.Memory.MemoryCacheStatistics
override this.GetCurrentStatistics : unit -> Microsoft.Extensions.Caching.Memory.MemoryCacheStatistics
Public Overridable Function GetCurrentStatistics () As MemoryCacheStatistics

Returns

An instance of MemoryCacheStatistics containing a snapshot of the cache statistics.

Applies to