Method SetAbsoluteExpiration
SetAbsoluteExpiration(DateTime)
Sets the absolute expiration time of the cache item. Only one type of expiration, either absolute or sliding expiration can be configured at one time.
Declaration
public void SetAbsoluteExpiration(DateTime dateTime)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dateTime | The absolute date time after which the item will be expired from the cache. |