IMemoryCache.GetCurrentStatistics 方法

定义

获取缓存统计信息的快照(如果可用)。

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

返回

包含缓存统计信息快照的 实例MemoryCacheStatistics

适用于