IMemoryCacheManager Interface

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Defines an interface that a cache uses in order to communicate cache memory usage to a host environment.

Namespace:   System.Runtime.Caching.Hosting
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

public interface IMemoryCacheManager


Removes all references to a cache in the host environment.

System_CAPS_pubmethodUpdateCacheSize(Int64, MemoryCache)

Reports the size of the current cache.

The IMemoryCacheManager interface is implemented by host environments such as ASP.NET, and is consumed by ObjectCache implementations that must interact with the host environment to determine memory usage. Because caches often consume significant quantities of memory, the IMemoryCacheManager interface helps host environments manage memory usage.

Typically, only ObjectCache implementations that manage cache objects in memory would use this interface.

.NET Framework
Available since 4.0
Return to top