PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Implementation Namespace / Cache­Item­Configuration Class / Cache­Item­Configuration Properties / Cache­Item­Configuration.​Sliding­Expiration Property

CacheItemConfiguration.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: 5.0.55.0 (5.0.55.0)
Syntax
C#
public Nullable<TimeSpan> SlidingExpiration { get; set; }

Property Value

Type: Nullable<TimeSpan>

Implements

ICacheItemConfiguration.SlidingExpiration
See Also