Open sandboxFocus

Class CachedMethodMetadata

Encapsulates information about a method being cached. This cached is used by the implementation of ICachingService and you can use it if you override the CacheKeyBuilder class.

Inheritance
CachedMethodMetadata
Namespace: Metalama.Patterns.Caching
Assembly: Metalama.Patterns.Caching.dll
Syntax
public sealed class CachedMethodMetadata

Properties

Name Description
IgnoreThisParameter

Gets a value indicating whether the this parameter should be excluded from the cache key.

Method

Gets the MethodInfo of the method.

Methods

Name Description
ForCallingMethod(CachedMethodConfiguration?, int)

Gets or registers the metadata for the calling method.

IsParameterIgnored(int)

Determines whether a parameter at a specific index should be excluded from the cache key.

Register(MethodInfo, CachedMethodConfiguration?, bool)

Registers a cached method and returns its metadata.

Extension Methods