View Source
  Interface IDocumentCacheService
  
  
  
  
  Assembly: Umbraco.Core.dll
  Syntax
  
    public interface IDocumentCacheService
   
  Methods
  
  
    View Source
  
  ClearMemoryCacheAsync(CancellationToken)
  
  
  Declaration
  
    Task ClearMemoryCacheAsync(CancellationToken cancellationToken)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | CancellationToken | cancellationToken |  | 
    
  
  Returns
  
  
    View Source
  
  DeleteItemAsync(IContentBase)
  
  
  Declaration
  
    Task DeleteItemAsync(IContentBase content)
   
  Parameters
  
  Returns
  
  
    View Source
  
  GetByContentType(IPublishedContentType)
  
  
  Declaration
  
    IEnumerable<IPublishedContent> GetByContentType(IPublishedContentType contentType)
   
  Parameters
  
  Returns
  
  
    View Source
  
  GetByIdAsync(Int32, Nullable<Boolean>)
  
  
  Declaration
  
    Task<IPublishedContent> GetByIdAsync(int id, bool? preview = null)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int32 | id |  | 
      
        | System.Nullable<System.Boolean> | preview |  | 
    
  
  Returns
  
  
    View Source
  
  GetByKeyAsync(Guid, Nullable<Boolean>)
  
  
  Declaration
  
    Task<IPublishedContent> GetByKeyAsync(Guid key, bool? preview = null)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Guid | key |  | 
      
        | System.Nullable<System.Boolean> | preview |  | 
    
  
  Returns
  
  
    View Source
  
  HasContentByIdAsync(Int32, Boolean)
  
  
  Declaration
  
    Task<bool> HasContentByIdAsync(int id, bool preview = false)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int32 | id |  | 
      
        | System.Boolean | preview |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Task<System.Boolean> |  | 
    
  
  
    View Source
  
  Rebuild(IReadOnlyCollection<Int32>)
  
  
  Declaration
  
    void Rebuild(IReadOnlyCollection<int> contentTypeIds)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IReadOnlyCollection<System.Int32> | contentTypeIds |  | 
    
  
  
    View Source
  
  RebuildMemoryCacheByContentTypeAsync(IEnumerable<Int32>)
  
  
  Declaration
  
    Task RebuildMemoryCacheByContentTypeAsync(IEnumerable<int> contentTypeIds)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IEnumerable<System.Int32> | contentTypeIds |  | 
    
  
  Returns
  
  
    View Source
  
  RefreshContentAsync(IContent)
  
  
  Declaration
  
    Task RefreshContentAsync(IContent content)
   
  Parameters
  
  Returns
  
  
    View Source
  
  RefreshMemoryCacheAsync(Guid)
  
  
  Declaration
  
    Task RefreshMemoryCacheAsync(Guid key)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Guid | key |  | 
    
  
  Returns
  
  
    View Source
  
  RemoveFromMemoryCacheAsync(Guid)
  
  
  Declaration
  
    Task RemoveFromMemoryCacheAsync(Guid key)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Guid | key |  | 
    
  
  Returns
  
  
    View Source
  
  SeedAsync(CancellationToken)
  
  
  Declaration
  
    Task SeedAsync(CancellationToken cancellationToken)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | CancellationToken | cancellationToken |  | 
    
  
  Returns