IMemoryCacheManager Interface

Definition

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

public interface class IMemoryCacheManager
public interface IMemoryCacheManager
type IMemoryCacheManager = interface
Public Interface IMemoryCacheManager

Remarks

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.

Methods

ReleaseCache(MemoryCache)

Removes all references to a cache in the host environment.

UpdateCacheSize(Int64, MemoryCache)

Reports the size of the current cache.

Applies to