2023-09-17 20:35:13 +00:00
|
|
|
namespace Elsa.Http.Options;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides options for the HTTP file cache.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class HttpFileCacheOptions
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The time to live for cached files.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public TimeSpan TimeToLive { get; set; } = TimeSpan.FromDays(7);
|
2023-09-21 17:42:41 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The local cache directory. Defaults to the system's temp directory.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string LocalCacheDirectory { get; set; } = Path.GetTempPath();
|
2023-09-17 20:35:13 +00:00
|
|
|
}
|