PostSharp / / API Reference / Post­Sharp.​Patterns.​Caching / Cache­Attribute

Class CacheAttribute

Namespace: PostSharp.Patterns.Caching
Assembly: PostSharp.Patterns.Caching.dll
Syntax
[Metric("UsedFeatures", "Patterns.Caching.Cache")]
[ProvideAspectRole("Caching")]
[AspectRoleDependency]
[AspectRoleDependency]
[LinesOfCodeAvoided(3)]
[MulticastAttributeUsage(PersistMetaData = true)]
[Serializer]
public sealed class CacheAttribute : MethodInterceptionAspect, IMethodLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, IAsyncMethodInterceptionAspect, IMethodInterceptionAspect, IMethodLevelAspect, IAspect

Constructors

Name Description
CacheAttribute()
CacheAttribute(PortableFormatterConstructorContext)

Properties

Name Description
AbsoluteExpiration
AutoReload
IgnoreThisParameter
Priority
ProfileName
SlidingExpiration

Methods

Name Description
CompileTimeInitialize(MethodBase, AspectInfo)
CompileTimeValidate(MethodBase)
OnInvoke(MethodInterceptionArgs)
OnInvokeAsync(MethodInterceptionArgs)
RuntimeInitialize(MethodBase)