Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CacheParameterAttribute Class

This attribute should be used to mark methods whose argument(s) need to be cached.

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


[Visual Basic]
<Serializable> _
<AttributeUsage(Inherited:=False, AllowMultiple:=True, ValidOn:=AttributeTargets.Parameter)> _
Public NotInheritable Class CacheParameterAttribute
    Inherits BaseCacheAttribute
[AttributeUsage(Inherited=False, AllowMultiple=True, ValidOn=AttributeTargets.Parameter)]
public sealed class CacheParameterAttribute : BaseCacheAttribute

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.


This attribute allows application developers to specify that an argument of the method should be cached, but it will not do any caching by itself.

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

You can specify this attribute multiple times on the same method in order to cache several method parameters.


Namespace: Spring.Caching

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

See Also

CacheParameterAttribute Members | Spring.Caching Namespace