InvalidateCacheAttribute Class
Custom attribute that, when applied on a method, causes an invocation of this method to remove from the cache the result of invocations of other given methods with the same parameter values.
Namespace: Metalama.Patterns.Caching.Aspects
Assembly: Metalama.Patterns.Caching.Aspects.dll
Syntax
public sealed class InvalidateCacheAttribute : MethodAspect, IAspect<IMethod>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<IMethod>
Constructors
Name | Description |
---|---|
InvalidateCacheAttribute(String[]) | Initializes a new instance of the InvalidateCacheAttribute class that invalidates method of the same type as the type to which the current InvalidateCacheAttribute aspect is being applied. |
InvalidateCacheAttribute(Type, String[]) | Initializes a new instance of the InvalidateCacheAttribute class that invalidates method of a different type than the type to which the current InvalidateCacheAttribute aspect is being applied. |
Properties
Name | Description |
---|---|
AllowMultipleOverloads | Gets or sets a value indicating whether the current InvalidateCacheAttribute can match several overloads of the methods.
The default value is |
Methods
Name | Description |
---|---|
BuildAspect(IAspectBuilder<IMethod>) | |
BuildEligibility(IEligibilityBuilder<IMethod>) | |
InitializeMethodInfoArray(IReadOnlyList<IMethod>, IField) |