Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

InvalidateCacheAdvice Class

Implementation of a cache invalidation advice.

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

System.Object
   BaseCacheAdvice
      InvalidateCacheAdvice

[Visual Basic]
Public Class InvalidateCacheAdvice
    Inherits BaseCacheAdvice
    Implements IAfterReturningAdvice, IAdvice
[C#]
public class InvalidateCacheAdvice : BaseCacheAdvice, IAfterReturningAdvice, IAdvice

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 advice can be used to evict items from the cache.

Information that determines which items should be evicted and from which cache are retrieved from the InvalidateCacheAttributes that are defined on the pointcut.

Items are evicted *after* target method is invoked. Return value of the method, as well as method arguments, can be used to determine a list of keys for the items that should be evicted (return value will be passed as a context for Keys expression evaluation, and method arguments will be passed as variables, keyed by argument name).

Requirements

Namespace: Spring.Aspects.Cache

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

See Also

InvalidateCacheAdvice Members | Spring.Aspects.Cache Namespace | InvalidateCacheAttribute