Class WebReportCacheOptions
Namespace: FastReport.Web.Cache
Assembly: FastReport.OpenSource.Web.dll
Syntax
public class WebReportCacheOptions
Properties
AbsoluteExpiration
Specifies the exact expiration date and time for the report in the cache. When both AbsoluteExpiration and AbsoluteExpirationDuration are specified, the earlier of the two values determines when the cache entry expires. If not set, the cache entry will rely on either the sliding expiration defined by CacheDuration or the absolute lifetime defined by AbsoluteExpirationDuration.
Declaration
public DateTimeOffset? AbsoluteExpiration { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTimeOffset> |
AbsoluteExpirationDuration
The absolute lifetime of a report in the cache. Unlike CacheDuration, which specifies a sliding expiration policy, this property defines the maximum amount of time a report can exist in the cache, regardless of activity or references. If not specified, the cache entry will rely solely on the sliding expiration defined by CacheDuration.
Declaration
public TimeSpan? AbsoluteExpirationDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> |
CacheDuration
Reports' lifetime in cache. If report is not used the specified time and there is no references to the object, it will be deleted from cache. Default value: 15 minutes.
Declaration
public TimeSpan CacheDuration { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |