Open sandboxFocus

Class CachingProfileRegistry

Allows the configuration of caching profiles (CachingProfile), and therefore influences the behavior of the CacheAttribute aspect at run time. This class is exposed by the Profiles property of each service, and by the Profiles property for DefaultService.

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

Properties

Name Description
Default

Gets the default CachingProfile.

this[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, in this registry or in the registry of another ICachingService.

Methods

Name Description
Register(CachingProfile)

Registers a CachingProfile.

Reset()

Resets the current CachingProfileRegistry to the default values.