CacheInsertOptions::SlidingExpiration Property

 

Gets or sets the interval between the time the inserted object is last accessed and the time at which that object expires. If this value is the equivalent of 20 minutes, the object will expire and be removed from the cache 20 minutes after it was last accessed.

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

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

Property Value

Type: System::TimeSpan

The interval between the time the inserted object is last accessed and the time at which that object expires.

.NET Framework
Available since 4.7
Return to top
Show: