Open sandboxFocus

Namespace PostSharp.Patterns.Caching

Classes

CacheAttribute

Custom attribute that, when applied on a method, causes the return value of the method to be cached for the specific list of arguments passed to this method call.

CacheAttribute.Serializer

CacheConfigurationAttribute

Custom attribute that, when applied on a type, configures the CacheAttribute aspects applied to the methods of this type or its derived types. When applied to an assembly, the CacheConfigurationAttribute custom attribute configures all methods of the current assembly.

CachingException

Exception thrown by PostSharp.Patterns.Caching.

CachingProfile

Allows for centralized and run-time configuration of several instances of the CacheAttribute aspect.

CachingServices

The entry point to configure PostSharp.Patterns.Caching at run-time.

CachingServices.CachingProfileRegistry

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

CachingServices.Formatters

Allows to get and register formatters used to generate caching keys.

CachingServices.Invalidation

Invalidates the cache.

InvalidCacheItemException

Exception thrown by a caching back-end during cache item retrieval (e.g. when the cached data cannot be serialized by the current object model). Throwing this exception causes removal of the invalid item.

InvalidateCacheAttribute

Custom attribute that, when applied on a method, causes an invocation of this method to remove from the cache the result of invocations of other given methods with the same parameter values.

InvalidateCacheAttribute.Serializer

NotCacheKeyAttribute

Custom attribute that, when applied to a parameter of a cached method (i.e. a method enhanced by the CacheAttribute aspect), excludes this parameter from being a part of the cache key.

Interfaces

ICachingContext

Represents the context in which a method being cached is executing.

Enums

CachingContextKind

Enumerates the kinds of ICachingContext.