PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Caching.​Implementation Namespace/ICache­Item­Configuration Interface

ICacheItemConfiguration Interface

Configuration of a cached method. This interface is implemented by several classes that allow to configure cached method.

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.6.10.0 (6.6.10.0)
Syntax
C#
public interface ICacheItemConfiguration

The ICacheItemConfiguration type exposes the following members.

Properties
  NameDescription
Public propertyAbsoluteExpiration
Gets or sets the total duration during which the result of the cached methods is stored in cache. The absolute expiration time is counted from the moment the method is evaluated and cached.
Public propertyAutoReload
Determines whether the method calls are automatically reloaded (by re-evaluating the target method with the same arguments) when the cache item is removed from the cache.
Public propertyIgnoreThisParameter
Determines whether the this instance should be a part of the cache key. The default value of this property is false, which means that by default the this instance is a part of the cache key.
Public propertyIsEnabled
Determines whether caching is enabled.
Public propertyPriority
Gets or sets the priority of the cached methods.
Public propertyProfileName
Gets or sets the name of the CachingProfile that contains the configuration of the cached methods.
Public propertySlidingExpiration
Gets or sets the duration during which the result of the cached methods is stored in cache after it has been added to or accessed from the cache. The expiration is extended every time the value is accessed from the cache.
See Also