Files
Umbraco-CMS/src/Umbraco.Core/PropertyEditors/PropertyCacheLevel.cs

38 lines
1.3 KiB
C#
Raw Normal View History

2013-11-07 17:16:22 +01:00
namespace Umbraco.Core.PropertyEditors
{
/// <summary>
/// Specifies the acceptable level of cache for a property value.
/// </summary>
/// <remarks>By default, <c>Request</c> is assumed.</remarks>
public enum PropertyCacheLevel
{
2014-04-02 11:22:38 +02:00
// note: we use the relative values in PublishedPropertyType to ensure that
// object level >= source level
// xpath level >= source level
2013-11-07 17:16:22 +01:00
/// <summary>
/// Indicates that the property value can be cached at the content level, ie it can be
/// cached until the content itself is modified.
/// </summary>
Content = 1,
/// <summary>
/// Indicates that the property value can be cached at the content cache level, ie it can
/// be cached until any content in the cache is modified.
/// </summary>
ContentCache = 2,
/// <summary>
/// Indicates that the property value can be cached at the request level, ie it can be
/// cached for the duration of the current request.
/// </summary>
Request = 3,
/// <summary>
/// Indicates that the property value cannot be cached and has to be converted any time
/// it is requested.
/// </summary>
None = 4
}
}