• Core
  • Infrastructure
  • Web
  • Extensions
Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IDocumentCacheService

    Namespace: Umbraco.Cms.Core.PublishedCache
    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
    Type Description
    Task
    View Source

    DeleteItemAsync(IContentBase)

    Declaration
    Task DeleteItemAsync(IContentBase content)
    Parameters
    Type Name Description
    IContentBase content
    Returns
    Type Description
    Task
    View Source

    GetByContentType(IPublishedContentType)

    Declaration
    IEnumerable<IPublishedContent> GetByContentType(IPublishedContentType contentType)
    Parameters
    Type Name Description
    IPublishedContentType contentType
    Returns
    Type Description
    IEnumerable<IPublishedContent>
    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
    Type Description
    Task<IPublishedContent>
    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
    Type Description
    Task<IPublishedContent>
    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
    Type Description
    Task
    View Source

    RefreshContentAsync(IContent)

    Declaration
    Task RefreshContentAsync(IContent content)
    Parameters
    Type Name Description
    IContent content
    Returns
    Type Description
    Task
    View Source

    RefreshMemoryCacheAsync(Guid)

    Declaration
    Task RefreshMemoryCacheAsync(Guid key)
    Parameters
    Type Name Description
    Guid key
    Returns
    Type Description
    Task
    View Source

    RemoveFromMemoryCacheAsync(Guid)

    Declaration
    Task RemoveFromMemoryCacheAsync(Guid key)
    Parameters
    Type Name Description
    Guid key
    Returns
    Type Description
    Task
    View Source

    SeedAsync(CancellationToken)

    Declaration
    Task SeedAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • ClearMemoryCacheAsync(CancellationToken)
      • DeleteItemAsync(IContentBase)
      • GetByContentType(IPublishedContentType)
      • GetByIdAsync(Int32, Nullable<Boolean>)
      • GetByKeyAsync(Guid, Nullable<Boolean>)
      • HasContentByIdAsync(Int32, Boolean)
      • Rebuild(IReadOnlyCollection<Int32>)
      • RebuildMemoryCacheByContentTypeAsync(IEnumerable<Int32>)
      • RefreshContentAsync(IContent)
      • RefreshMemoryCacheAsync(Guid)
      • RemoveFromMemoryCacheAsync(Guid)
      • SeedAsync(CancellationToken)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX