Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. Microsoft.Extensions.Caching.Memory
  3. IMemoryCache
  4. GetCurrentStatistics()
  • IMemoryCache
    • CreateEntry(Object)
    • GetCurrentStatistics()
    • Remove(Object)
    • TryGetValue(Object, Object)
    • Get(IMemoryCache, Object)
    • Get<TItem>(IMemoryCache, Object)
    • GetOrCreate<TItem>(IMemoryCache, Object, Func<ICacheEntry, TItem>)
    • GetOrCreate<TItem>(IMemoryCache, Object, Func<ICacheEntry, TItem>, MemoryCacheEntryOptions)
    • GetOrCreateAsync<TItem>(IMemoryCache, Object, Func<ICacheEntry, Task<TItem>>)
    • GetOrCreateAsync<TItem>(IMemoryCache, Object, Func<ICacheEntry, Task<TItem>>, MemoryCacheEntryOptions)
    • Set<TItem>(IMemoryCache, Object, TItem)
    • Set<TItem>(IMemoryCache, Object, TItem, DateTimeOffset)
    • Set<TItem>(IMemoryCache, Object, TItem, IChangeToken)
    • Set<TItem>(IMemoryCache, Object, TItem, MemoryCacheEntryOptions)
    • Set<TItem>(IMemoryCache, Object, TItem, TimeSpan)
    • TryGetValue<TItem>(IMemoryCache, Object, TItem)
net9.0
namespace Microsoft.Extensions.Caching.Memory
{
    public interface IMemoryCache : IDisposable
    {
        virtual MemoryCacheStatistics? GetCurrentStatistics();
    }
}
.NET
7.08.09.0
Information specific to net9.0
Assembly

Microsoft.Extensions.Caching.Abstractions , Version=9.0.0.0, PublicKeyToken=adb9793829ddae60

Referencing

Requires any:

  • Your project needs to use SDK Microsoft.NET.Sdk.Web.

  • Your project needs a framework reference to Microsoft.AspNetCore.App.

Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

11/11/2026
This site is managed by Microsoft | © 2026 Microsoft. All rights reserved.
  • Privacy Statement
  • Consumer Health Privacy
  • Terms of Use
  • Contact Us
  • Hosted on Microsoft Azure
  • Manage cookies
  • Your Privacy Choices
Oops, we couldn't process your request. Reload 🗙