Table of Contents

Class DefaultCacheKeyStrategy

Namespace
Polly.Caching
Assembly
Polly.dll

The default cache key strategy for CachePolicy. Returns the property Context.ExecutionKey.

public class DefaultCacheKeyStrategy : ICacheKeyStrategy
Inheritance
DefaultCacheKeyStrategy
Implements
Inherited Members

Constructors

DefaultCacheKeyStrategy()

public DefaultCacheKeyStrategy()

Fields

Instance

Gets an instance of the DefaultCacheKeyStrategy.

public static readonly ICacheKeyStrategy Instance

Field Value

ICacheKeyStrategy

Methods

GetCacheKey(Context)

Gets the cache key from the given execution context.

public string GetCacheKey(Context context)

Parameters

context Context

The execution context.

Returns

string

The cache key