PostSharp5.0/API Reference/Post­Sharp.​Patterns.​Caching Namespace/Caching­Profile Class

CachingProfile Class

Allows for centralized and run-time configuration of several instances of the CacheAttribute aspect.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.CachingProfile

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public sealed class CachingProfile : ICacheItemConfiguration

The CachingProfile type exposes the following members.

Constructors
  NameDescription
Public methodCachingProfile
Initializes a new CachingProfile.
Properties
  NameDescription
Public propertyAbsoluteExpiration
Gets or sets the total duration during which the result of the current method 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 propertyIsEnabled
Determines whether caching is enabled for the current profile.
Public propertyName
Gets the profile name (a case-insensitive string).
Public propertyPriority
Gets or sets the priority of the cached methods.
Public propertySlidingExpiration
Gets or sets the duration during which the result of the current method 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.
Fields
  NameDescription
Public fieldStatic memberDefaultName
The name of the default profile.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also