* default to preview value from cookie instead of draft. * Fix tests --------- Co-authored-by: Zeegaan <skrivdetud@gmail.com>
24 lines
717 B
C#
24 lines
717 B
C#
using Umbraco.Cms.Core.Models;
|
|
using Umbraco.Cms.Core.Models.PublishedContent;
|
|
|
|
namespace Umbraco.Cms.Infrastructure.HybridCache.Services;
|
|
|
|
public interface IDocumentCacheService
|
|
{
|
|
Task<IPublishedContent?> GetByKeyAsync(Guid key, bool? preview = null);
|
|
|
|
Task<IPublishedContent?> GetByIdAsync(int id, bool? preview = null);
|
|
|
|
Task SeedAsync(CancellationToken cancellationToken);
|
|
|
|
Task<bool> HasContentByIdAsync(int id, bool preview = false);
|
|
|
|
Task RefreshContentAsync(IContent content);
|
|
|
|
Task DeleteItemAsync(IContentBase content);
|
|
|
|
void Rebuild(IReadOnlyCollection<int> contentTypeIds);
|
|
|
|
internal IEnumerable<IPublishedContent> GetByContentType(IPublishedContentType contentType);
|
|
}
|