2017-07-20 11:21:28 +02:00
|
|
|
|
using System;
|
2016-01-06 18:08:14 +01:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using Umbraco.Core.CodeAnnotations;
|
2014-01-28 09:22:01 +11:00
|
|
|
|
|
2013-03-12 03:00:42 +04:00
|
|
|
|
namespace Umbraco.Core.Cache
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Constants storing cache keys used in caching
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static class CacheKeys
|
|
|
|
|
|
{
|
2013-04-04 21:57:41 +06:00
|
|
|
|
public const string ApplicationTreeCacheKey = "ApplicationTreeCache";
|
|
|
|
|
|
public const string ApplicationsCacheKey = "ApplicationCache";
|
|
|
|
|
|
|
2014-01-28 09:22:01 +11:00
|
|
|
|
[Obsolete("This is no longer used and will be removed from the codebase in the future")]
|
2016-01-06 18:08:14 +01:00
|
|
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
2013-04-04 03:43:05 +06:00
|
|
|
|
public const string UserTypeCacheKey = "UserTypeCache";
|
|
|
|
|
|
|
2016-01-06 18:08:14 +01:00
|
|
|
|
[Obsolete("This is no longer used and will be removed from the codebase in the future - it is referenced but no cache is stored against this key")]
|
|
|
|
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
2013-04-03 22:34:40 +06:00
|
|
|
|
public const string ContentItemCacheKey = "contentItem";
|
|
|
|
|
|
|
2016-01-06 18:08:14 +01:00
|
|
|
|
[UmbracoWillObsolete("This cache key is only used for the legacy 'library' caching, remove in v8")]
|
2013-03-16 01:37:05 +06:00
|
|
|
|
public const string MediaCacheKey = "UL_GetMedia";
|
2018-05-01 00:45:05 +10:00
|
|
|
|
|
2016-01-06 18:08:14 +01:00
|
|
|
|
[UmbracoWillObsolete("This cache key is only used for legacy business logic caching, remove in v8")]
|
2013-03-12 22:58:21 +04:00
|
|
|
|
public const string MacroCacheKey = "UmbracoMacroCache";
|
2016-01-06 18:08:14 +01:00
|
|
|
|
|
2016-05-26 17:12:04 +02:00
|
|
|
|
public const string MacroContentCacheKey = "macroContent_"; // for macro contents
|
2013-03-12 03:00:42 +04:00
|
|
|
|
|
2016-01-06 18:08:14 +01:00
|
|
|
|
[UmbracoWillObsolete("This cache key is only used for legacy 'library' member caching, remove in v8")]
|
2013-03-22 04:34:57 +06:00
|
|
|
|
public const string MemberLibraryCacheKey = "UL_GetMember";
|
2016-01-06 18:08:14 +01:00
|
|
|
|
|
|
|
|
|
|
[UmbracoWillObsolete("This cache key is only used for legacy business logic caching, remove in v8")]
|
2013-03-22 04:34:57 +06:00
|
|
|
|
public const string MemberBusinessLogicCacheKey = "MemberCacheItem_";
|
2016-01-06 18:08:14 +01:00
|
|
|
|
|
|
|
|
|
|
[UmbracoWillObsolete("This cache key is only used for legacy template business logic caching, remove in v8")]
|
2013-03-22 02:08:55 +06:00
|
|
|
|
public const string TemplateFrontEndCacheKey = "template";
|
2015-01-29 15:39:41 +11:00
|
|
|
|
|
2013-04-04 02:11:31 +06:00
|
|
|
|
public const string UserContextTimeoutCacheKey = "UmbracoUserContextTimeout";
|
2014-01-28 10:46:59 +11:00
|
|
|
|
|
2016-01-06 18:08:14 +01:00
|
|
|
|
[UmbracoWillObsolete("This cache key is only used for legacy business logic caching, remove in v8")]
|
2013-03-16 08:47:55 +06:00
|
|
|
|
public const string ContentTypeCacheKey = "UmbracoContentType";
|
|
|
|
|
|
|
2016-01-06 18:08:14 +01:00
|
|
|
|
[UmbracoWillObsolete("This cache key is only used for legacy business logic caching, remove in v8")]
|
2013-03-16 08:47:55 +06:00
|
|
|
|
public const string ContentTypePropertiesCacheKey = "ContentType_PropertyTypes_Content:";
|
2018-05-01 00:45:05 +10:00
|
|
|
|
|
2017-08-14 18:21:48 +02:00
|
|
|
|
public const string IdToKeyCacheKey = "UI2K__";
|
|
|
|
|
|
public const string KeyToIdCacheKey = "UK2I__";
|
2013-03-12 03:00:42 +04:00
|
|
|
|
}
|
2017-07-20 11:21:28 +02:00
|
|
|
|
}
|