Method SetSlidingExpiration
SetSlidingExpiration(TimeSpan)
Sets the sliding expiration time of the caching item. Only one type of expiration, either absoute expiration or sliding expiration, can be configured at one time.
Declaration
public void SetSlidingExpiration(TimeSpan timespan)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timespan | The time span in which if the item is not accessed it will be expired from the cache. |