2021-02-18 11:06:02 +01:00
|
|
|
|
namespace Umbraco.Cms.Core.Scoping
|
2017-05-12 14:49:44 +02:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Specifies the cache mode of repositories.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum RepositoryCacheMode
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Unspecified.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Unspecified = 0,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Default, full L2 cache.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Default = 1,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Scoped cache.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>
|
|
|
|
|
|
/// <para>Reads from, and writes to, a scope-local cache.</para>
|
|
|
|
|
|
/// <para>Upon scope completion, clears the global L2 cache.</para>
|
|
|
|
|
|
/// </remarks>
|
2017-06-23 18:54:42 +02:00
|
|
|
|
Scoped = 2,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// No cache.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>
|
|
|
|
|
|
/// <para>Bypasses caches entirely.</para>
|
|
|
|
|
|
/// <para>Upon scope completion, clears the global L2 cache.</para>
|
|
|
|
|
|
/// </remarks>
|
|
|
|
|
|
None = 3
|
2017-05-12 14:49:44 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|