PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Implementation Namespace / ICache­Item­Configuration Interface / ICache­Item­Configuration Properties / ICache­Item­Configuration.​Sliding­Expiration Property

ICacheItemConfiguration.SlidingExpiration Property

Gets or sets the duration during which the result of the cached methods 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.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 2023.0.3.0 (2023.0.3.0)
Nullable<TimeSpan> SlidingExpiration { get; }

Property Value

Type: Nullable<TimeSpan>
See Also