2021-02-18 11:06:02 +01:00
|
|
|
using Umbraco.Cms.Core.Models;
|
2020-12-09 22:43:49 +11:00
|
|
|
|
2022-06-20 09:21:08 +02:00
|
|
|
namespace Umbraco.Cms.Infrastructure.PublishedCache.Persistence;
|
|
|
|
|
|
|
|
|
|
public interface INuCacheContentRepository
|
2020-12-09 22:43:49 +11:00
|
|
|
{
|
2022-06-20 09:21:08 +02:00
|
|
|
void DeleteContentItem(IContentBase item);
|
|
|
|
|
|
|
|
|
|
IEnumerable<ContentNodeKit> GetAllContentSources();
|
|
|
|
|
|
|
|
|
|
IEnumerable<ContentNodeKit> GetAllMediaSources();
|
|
|
|
|
|
|
|
|
|
IEnumerable<ContentNodeKit> GetBranchContentSources(int id);
|
|
|
|
|
|
|
|
|
|
IEnumerable<ContentNodeKit> GetBranchMediaSources(int id);
|
|
|
|
|
|
|
|
|
|
ContentNodeKit GetContentSource(int id);
|
|
|
|
|
|
|
|
|
|
ContentNodeKit GetMediaSource(int id);
|
|
|
|
|
|
|
|
|
|
IEnumerable<ContentNodeKit> GetTypeContentSources(IEnumerable<int>? ids);
|
|
|
|
|
|
|
|
|
|
IEnumerable<ContentNodeKit> GetTypeMediaSources(IEnumerable<int> ids);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Refreshes the nucache database row for the <see cref="IContent" />
|
|
|
|
|
/// </summary>
|
|
|
|
|
void RefreshContent(IContent content);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Refreshes the nucache database row for the <see cref="IMedia" />
|
|
|
|
|
/// </summary>
|
|
|
|
|
void RefreshMedia(IMedia content);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Refreshes the nucache database row for the <see cref="IMember" />
|
|
|
|
|
/// </summary>
|
|
|
|
|
void RefreshMember(IMember content);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Rebuilds the caches for content, media and/or members based on the content type ids specified
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="contentTypeIds">
|
|
|
|
|
/// If not null will process content for the matching content types, if empty will process all
|
|
|
|
|
/// content
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <param name="mediaTypeIds">
|
|
|
|
|
/// If not null will process content for the matching media types, if empty will process all
|
|
|
|
|
/// media
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <param name="memberTypeIds">
|
|
|
|
|
/// If not null will process content for the matching members types, if empty will process all
|
|
|
|
|
/// members
|
|
|
|
|
/// </param>
|
|
|
|
|
void Rebuild(
|
|
|
|
|
IReadOnlyCollection<int>? contentTypeIds = null,
|
|
|
|
|
IReadOnlyCollection<int>? mediaTypeIds = null,
|
|
|
|
|
IReadOnlyCollection<int>? memberTypeIds = null);
|
|
|
|
|
|
|
|
|
|
bool VerifyContentDbCache();
|
|
|
|
|
|
|
|
|
|
bool VerifyMediaDbCache();
|
|
|
|
|
|
|
|
|
|
bool VerifyMemberDbCache();
|
2020-12-09 22:43:49 +11:00
|
|
|
}
|