CacheItemPolicy::SlidingExpiration Property

.NET Framework (current version)
 

Gets or sets a value that indicates whether a cache entry should be evicted if it has not been accessed in a given span of time.

Namespace:   System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

public:
property TimeSpan SlidingExpiration {
	TimeSpan get();
	void set(TimeSpan value);
}

Property Value

Type: System::TimeSpan

A span of time within which a cache entry must be accessed before the cache entry is evicted from the cache. The default is NoSlidingExpiration, meaning that the item should not be expired based on a time span.

.NET Framework
Available since 4.0
Return to top
Show: