22 lines
612 B
C#
22 lines
612 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 = false);
|
|||
|
|
|
|||
|
|
Task<IPublishedContent?> GetByIdAsync(int id, bool preview = false);
|
|||
|
|
|
|||
|
|
Task SeedAsync(IReadOnlyCollection<Guid> contentTypeKeys);
|
|||
|
|
|
|||
|
|
Task<bool> HasContentByIdAsync(int id, bool preview = false);
|
|||
|
|
|
|||
|
|
Task RefreshContentAsync(IContent content);
|
|||
|
|
|
|||
|
|
Task DeleteItemAsync(int id);
|
|||
|
|
|
|||
|
|
void Rebuild(IReadOnlyCollection<int> contentTypeKeys);
|
|||
|
|
}
|