Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CacheResultAttribute Class

This attribute should be used to mark methods whose result needs to be cached.

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


[Visual Basic]
<Serializable> _
<AttributeUsage(Inherited:=False, AllowMultiple:=False, ValidOn:=AttributeTargets.Method)> _
Public NotInheritable Class CacheResultAttribute
    Inherits BaseCacheAttribute
[AttributeUsage(Inherited=False, AllowMultiple=False, ValidOn=AttributeTargets.Method)]
public sealed class CacheResultAttribute : 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 mark that a result of the method invocation 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.CacheResultAdvice to all of the members that have this attribute defined.


Namespace: Spring.Caching

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

See Also

CacheResultAttribute Members | Spring.Caching Namespace