Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

BaseCacheAttribute.TimeToLiveTimeSpan Property

The amount of time an object should remain in the cache (in seconds).

[Visual Basic]
Public ReadOnly Property TimeToLiveTimeSpan() As TimeSpan
   Public Get
   End Get
End Property
[C#]
public TimeSpan TimeToLiveTimeSpan { public get; }

Property Value

The amount of time object should remain in the cache (in seconds).

Remarks

If no TTL is specified, the default TTL defined by the cache's policy will be applied.

See Also

BaseCacheAttribute Class | Spring.Caching Namespace