Search Results for

    Show / Hide Table of Contents
    View Source

    Interface INuCacheContentService

    Defines a data source for NuCache.

    Namespace: Umbraco.Cms.Infrastructure.PublishedCache.Persistence
    Assembly: Umbraco.PublishedCache.NuCache.dll
    Syntax
    public interface INuCacheContentService

    Methods

    View Source

    DeleteContentItem(IContentBase)

    Declaration
    void DeleteContentItem(IContentBase item)
    Parameters
    Type Name Description
    IContentBase item
    View Source

    DeleteContentItems(IEnumerable<IContentBase>)

    Declaration
    void DeleteContentItems(IEnumerable<IContentBase> items)
    Parameters
    Type Name Description
    IEnumerable<IContentBase> items
    View Source

    GetAllContentSources()

    Returns all content ordered by level + sortOrder

    Declaration
    IEnumerable<ContentNodeKit> GetAllContentSources()
    Returns
    Type Description
    IEnumerable<ContentNodeKit>
    Remarks

    MUST be ordered by level + parentId + sortOrder!

    View Source

    GetAllMediaSources()

    Returns all media ordered by level + sortOrder

    Declaration
    IEnumerable<ContentNodeKit> GetAllMediaSources()
    Returns
    Type Description
    IEnumerable<ContentNodeKit>
    Remarks

    MUST be ordered by level + parentId + sortOrder!

    View Source

    GetBranchContentSources(Int32)

    Returns branch for content ordered by level + sortOrder

    Declaration
    IEnumerable<ContentNodeKit> GetBranchContentSources(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    IEnumerable<ContentNodeKit>
    Remarks

    MUST be ordered by level + parentId + sortOrder!

    View Source

    GetBranchMediaSources(Int32)

    Returns branch for media ordered by level + sortOrder

    Declaration
    IEnumerable<ContentNodeKit> GetBranchMediaSources(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    IEnumerable<ContentNodeKit>
    Remarks

    MUST be ordered by level + parentId + sortOrder!

    View Source

    GetContentSource(Int32)

    Declaration
    ContentNodeKit GetContentSource(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    ContentNodeKit
    View Source

    GetMediaSource(Int32)

    Declaration
    ContentNodeKit GetMediaSource(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    ContentNodeKit
    View Source

    GetTypeContentSources(Nullable<IEnumerable<Int32>>)

    Returns content by Ids ordered by level + sortOrder

    Declaration
    IEnumerable<ContentNodeKit> GetTypeContentSources(IEnumerable<int>? ids)
    Parameters
    Type Name Description
    System.Nullable<IEnumerable<System.Int32>> ids
    Returns
    Type Description
    IEnumerable<ContentNodeKit>
    Remarks

    MUST be ordered by level + parentId + sortOrder!

    View Source

    GetTypeMediaSources(IEnumerable<Int32>)

    Returns media by Ids ordered by level + sortOrder

    Declaration
    IEnumerable<ContentNodeKit> GetTypeMediaSources(IEnumerable<int> ids)
    Parameters
    Type Name Description
    IEnumerable<System.Int32> ids
    Returns
    Type Description
    IEnumerable<ContentNodeKit>
    Remarks

    MUST be ordered by level + parentId + sortOrder!

    View Source

    Rebuild(Nullable<IReadOnlyCollection<Int32>>, Nullable<IReadOnlyCollection<Int32>>, Nullable<IReadOnlyCollection<Int32>>)

    Rebuilds the database caches for content, media and/or members based on the content type ids specified

    Declaration
    void Rebuild(IReadOnlyCollection<int>? contentTypeIds = null, IReadOnlyCollection<int>? mediaTypeIds = null, IReadOnlyCollection<int>? memberTypeIds = null)
    Parameters
    Type Name Description
    System.Nullable<IReadOnlyCollection<System.Int32>> contentTypeIds

    If not null will process content for the matching content types, if empty will process all content

    System.Nullable<IReadOnlyCollection<System.Int32>> mediaTypeIds

    If not null will process content for the matching media types, if empty will process all media

    System.Nullable<IReadOnlyCollection<System.Int32>> memberTypeIds

    If not null will process content for the matching members types, if empty will process all members

    View Source

    RebuildDatabaseCacheIfSerializerChanged()

    Used during startup to see if the configured serialized is different from the persisted serialize type. If they are different, this will rebuild the nucache DB table with the configured serializer.

    Declaration
    void RebuildDatabaseCacheIfSerializerChanged()
    View Source

    RefreshContent(IContent)

    Refreshes the nucache database row for the

    Declaration
    void RefreshContent(IContent content)
    Parameters
    Type Name Description
    IContent content
    View Source

    RefreshMedia(IMedia)

    Refreshes the nucache database row for the

    Declaration
    void RefreshMedia(IMedia media)
    Parameters
    Type Name Description
    IMedia media
    View Source

    RefreshMember(IMember)

    Refreshes the nucache database row for the

    Declaration
    void RefreshMember(IMember member)
    Parameters
    Type Name Description
    IMember member
    View Source

    VerifyContentDbCache()

    Declaration
    bool VerifyContentDbCache()
    Returns
    Type Description
    System.Boolean
    View Source

    VerifyMediaDbCache()

    Declaration
    bool VerifyMediaDbCache()
    Returns
    Type Description
    System.Boolean
    View Source

    VerifyMemberDbCache()

    Declaration
    bool VerifyMemberDbCache()
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • DeleteContentItem(IContentBase)
      • DeleteContentItems(IEnumerable<IContentBase>)
      • GetAllContentSources()
      • GetAllMediaSources()
      • GetBranchContentSources(Int32)
      • GetBranchMediaSources(Int32)
      • GetContentSource(Int32)
      • GetMediaSource(Int32)
      • GetTypeContentSources(Nullable<IEnumerable<Int32>>)
      • GetTypeMediaSources(IEnumerable<Int32>)
      • Rebuild(Nullable<IReadOnlyCollection<Int32>>, Nullable<IReadOnlyCollection<Int32>>, Nullable<IReadOnlyCollection<Int32>>)
      • RebuildDatabaseCacheIfSerializerChanged()
      • RefreshContent(IContent)
      • RefreshMedia(IMedia)
      • RefreshMember(IMember)
      • VerifyContentDbCache()
      • VerifyMediaDbCache()
      • VerifyMemberDbCache()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX