PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​ImplementationCache­Item­Configuration
Open sandboxFocus

CacheItemConfiguration Class

Configuration of a CacheItem.

Inheritance
System.Object
CacheItemConfiguration
Namespace: PostSharp.Patterns.Caching.Implementation
Assembly: PostSharp.Patterns.Caching.dll
Syntax
[Serializer]
public sealed class CacheItemConfiguration : Object, ICacheItemConfiguration

Constructors

Name Description
CacheItemConfiguration()
CacheItemConfiguration(PortableFormatterConstructorContext)

Properties

Name Description
AbsoluteExpiration

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.

AutoReload

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.

IgnoreThisParameter

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.

IsEnabled

Determines whether caching is enabled.

Priority

Gets or sets the priority of the cached methods.

ProfileName

Gets or sets the name of the CachingProfile that contains the configuration of the cached methods.

SlidingExpiration

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.