Class DefaultCacheKeyStrategy
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
Methods
GetCacheKey(Context)
Gets the cache key from the given execution context.
public string GetCacheKey(Context context)
Parameters
context
ContextThe execution context.
Returns
- string
The cache key