PostSharp 2023.0 / / Post­Sharp Documentation / 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: 2023.0.3.0 (2023.0.3.0)
public Nullable<TimeSpan> SlidingExpiration { get; set; }

Property Value

Type: Nullable<TimeSpan>
See Also