using System.ComponentModel;
namespace Umbraco.Cms.Core.Configuration.Models
{
[UmbracoOptions(Constants.Configuration.ConfigRuntimeMinification)]
public class RuntimeMinificationSettings
{
internal const bool StaticUseInMemoryCache = false;
internal const string StaticCacheBuster = "Version";
internal const string StaticVersion = null;
///
/// Use in memory cache
///
[DefaultValue(StaticUseInMemoryCache)]
public bool UseInMemoryCache { get; set; } = StaticUseInMemoryCache;
///
/// The cache buster type to use
///
[DefaultValue(StaticCacheBuster)]
public RuntimeMinificationCacheBuster CacheBuster { get; set; } = Enum.Parse(StaticCacheBuster);
///
/// The unique version string used if CacheBuster is 'Version'.
///
[DefaultValue(StaticVersion)]
public string Version { get; set; } = StaticVersion;
}
}