Open sandboxFocus

Interface IClearableMemoryCache

An IMemoryCache that can remove all of its entries.

Namespace: Metalama.Patterns.Caching.Implementation
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
public interface IClearableMemoryCache : IMemoryCache, IDisposable
Remarks

MemoryCache exposes these two operations, but IMemoryCache does not declare them. An implementation of IMemoryCache that also implements this interface supports the Clear feature of Metalama.Patterns.Caching.Backends.MemoryCachingBackend.

Methods

Name Description
Clear()

Removes all entries.

Compact(double)

Removes the given percentage of the entries.

Extension Methods