Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

CacheResultItemsAttribute Class

This attribute should be used with methods that return an ICollection in order to cache each item separately.

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


[Visual Basic]
<Serializable> _
<AttributeUsage(Inherited:=False, AllowMultiple:=True, ValidOn:=AttributeTargets.Method)> _
Public NotInheritable Class CacheResultItemsAttribute
    Inherits BaseCacheAttribute
[AttributeUsage(Inherited=False, AllowMultiple=True, ValidOn=AttributeTargets.Method)]
public sealed class CacheResultItemsAttribute : 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 each item from the collection returned by 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.CacheResultAdvice to all of the members that have this attribute defined.


Namespace: Spring.Caching

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

See Also

CacheResultItemsAttribute Members | Spring.Caching Namespace