PostSharpAPI ReferencePost­Sharp.​Patterns.​CachingCaching­Services.​Caching­Profile­Registry
Open sandboxFocus

CachingServices.CachingProfileRegistry Class

Allows to configure caching profiles (CachingProfile), and therefore influence the behavior of the CacheAttribute aspect at run-time. Exposed on the Profiles property.

Inheritance
CachingServices.CachingProfileRegistry
Namespace: PostSharp.Patterns.Caching
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public sealed class CachingProfileRegistry : Object

Properties

Name Description
Default

Gets the default CachingProfile.

Item[String]

Gets a CachingProfile of a given name. If no profile exists, a new profile is created, registered and returned.

RevisionNumber

Gets the revision number of all caching profiles. This property is incremented every time a profile is registered or modified.

Methods

Name Description
Register(CachingProfile)

Registers a CachingProfile.

Reset()

Resets the current CachingServices.CachingProfileRegistry to the default values.