PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Caching Namespace/Caching­Profile Class/Caching­Profile Properties/Caching­Profile.​Sliding­Expiration Property

CachingProfile.SlidingExpiration Property

Gets or sets the duration during which the result of the current method is stored in cache after it has been added to or accessed from the cache. The expiration is extended every time the value is accessed from the cache.

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public Nullable<TimeSpan> SlidingExpiration { get; set; }

Property Value

Type: Nullable<TimeSpan>
See Also