Open sandboxFocus

Interface ICacheKeyBuilder

Builds cache item keys and dependency keys.

Namespace: Metalama.Patterns.Caching.Formatters
Assembly: Metalama.Patterns.Caching.dll
Syntax
public interface ICacheKeyBuilder
Remarks

The default implementation is CacheKeyBuilder. Custom implementations can be registered through WithKeyBuilder(Func<IFormatterRepository, CacheKeyBuilderOptions, ICacheKeyBuilder>).

Methods

Name Description
BuildDependencyKey(object)

Builds a dependency key for a given object.

BuildMethodKey(CachedMethodMetadata, object?, IList<object?>)

Builds a cache key for a given method call.

Extension Methods

See Also