IMemoryCacheManager Interface

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

The IMemoryCacheManager type exposes the following members.

Public methodReleaseCacheRemoves all references to a cache in the host environment.
Public methodUpdateCacheSizeReports 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

Supported in: 4.5.3, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft