Interface for compile-time classifiers that determine how method parameters should be handled in cache key generation.
Namespace: Metalama.Patterns.Caching.Aspects.Configuration
Assembly: Metalama.Patterns.Caching.Aspects.dll
Syntax
public interface ICacheParameterClassifier : ICompileTimeSerializableRemarks
Implementations of this interface are registered through the AddParameterClassifier(string, ICacheParameterClassifier) method and are evaluated at compile time for each parameter of cached methods.
Classifiers can exclude parameters from the cache key (for example, to exclude ILogger
parameters) or report parameters as ineligible for caching (for example, parameters of types
that cannot be reliably serialized to a cache key).
Methods
| Name | Description |
|---|---|
| GetClassification(IParameter) | Evaluates a method parameter and returns a classification indicating how it should be handled in cache key generation. |