MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​Dependencies
Open sandboxFocus

Metalama.Patterns.Caching.Dependencies Namespace

Classes

ObjectDependency

Wraps an System.Object into an ObjectDependency. The GetCacheKey(ICachingService) method relies on the KeyBuilder to create the cache key of the wrapped object.

StringDependency

A cache dependency that is already represented as a string.

Interfaces

ICacheDependency

Interface that must be implemented by classes that need to be used as cache dependencies, for use with the AddDependency(ICachingService, ICacheDependency) method. Alternatively, custom classes may implement the IFormattable<T> interface or simply the ToString() method.