Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

InvalidateCacheAttribute Class

This attribute should be used to mark method that should invalidate one or more cache items when invoked.

For a list of all members of this type, see InvalidateCacheAttribute Members .

System.Object
   Attribute
      InvalidateCacheAttribute

[Visual Basic]
<Serializable> _
<AttributeUsage(ValidOn:=AttributeTargets.Method, AllowMultiple:=True, Inherited:=False)> _
Public NotInheritable Class InvalidateCacheAttribute
    Inherits Attribute
[C#]
[Serializable]
[AttributeUsage(ValidOn=AttributeTargets.Method, AllowMultiple=True, Inherited=False)]
public sealed class InvalidateCacheAttribute : Attribute

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This attribute allows application developers to specify that some cache items should be evicted from cache when the method is invoked, but it will not do any eviction by itself.

In order to actually evict cache items, an application developer must apply a Spring.Aspects.Cache.InvalidateCacheAdvice to all of the members that have this attribute defined.

Requirements

Namespace: Spring.Caching

Assembly: Spring.Core (in Spring.Core.dll)

See Also

InvalidateCacheAttribute Members | Spring.Caching Namespace