MemoryCache.GetCurrentStatistics 方法

定义

获取内存缓存的当前统计信息的快照。

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

返回

null如果未跟踪统计信息,因为 为 TrackStatisticsfalse,则返回 。

实现

适用于