Table of Contents

DocumentUltimateWebConfiguration.CacheMaxAge Property

Definition

Namespace
GleamTech.DocumentUltimate.AspNet
Assembly
GleamTech.DocumentUltimate.dll

Gets or sets a value that specifies the maximum amount of time to consider a cached item fresh and keep it stored in the cache. Cached items older than this age will be removed when the cache trimming (clean up) runs (when auto trim is run or when cache's Trim() method is manually called).

The default value is 90 days. The minimum value is 10 minutes.

In string representation (e.g. when setting in a config file), value in format "d" is considered days (e.g. "30" is 30 days) and value in format "hh:mm" is considered hours and minutes (e.g. "1:30" is 1 hour and 30 minutes). Note that "24:00" would mean 24 days as hour range is 0 to 23 and minute range is 0 to 59. See Parse(string) documentation for details on possible string representations.

public TimeSpan CacheMaxAge { get; set; }

Property Value

TimeSpan