Search Results for

    Show / Hide Table of Contents
    View Source

    Class NuCacheContentRepository

    Inheritance
    System.Object
    RepositoryBase
    Namespace: Umbraco.Cms.Infrastructure.PublishedCache.Persistence
    Assembly: Umbraco.PublishedCache.NuCache.dll
    Syntax
    public class NuCacheContentRepository : RepositoryBase, INuCacheContentRepository

    Constructors

    View Source

    NuCacheContentRepository(IScopeAccessor, AppCaches, ILogger<NuCacheContentRepository>, IMemberRepository, IDocumentRepository, IMediaRepository, IShortStringHelper, UrlSegmentProviderCollection, IContentCacheDataSerializerFactory, IOptions<NuCacheSettings>)

    Initializes a new instance of the NuCacheContentRepository class.

    Declaration
    public NuCacheContentRepository(IScopeAccessor scopeAccessor, AppCaches appCaches, ILogger<NuCacheContentRepository> logger, IMemberRepository memberRepository, IDocumentRepository documentRepository, IMediaRepository mediaRepository, IShortStringHelper shortStringHelper, UrlSegmentProviderCollection urlSegmentProviders, IContentCacheDataSerializerFactory contentCacheDataSerializerFactory, IOptions<NuCacheSettings> nucacheSettings)
    Parameters
    Type Name Description
    IScopeAccessor scopeAccessor
    AppCaches appCaches
    ILogger<NuCacheContentRepository> logger
    IMemberRepository memberRepository
    IDocumentRepository documentRepository
    IMediaRepository mediaRepository
    IShortStringHelper shortStringHelper
    UrlSegmentProviderCollection urlSegmentProviders
    IContentCacheDataSerializerFactory contentCacheDataSerializerFactory
    IOptions<NuCacheSettings> nucacheSettings

    Methods

    View Source

    DeleteContentItem(IContentBase)

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

    GetAllContentSources()

    Declaration
    public IEnumerable<ContentNodeKit> GetAllContentSources()
    Returns
    Type Description
    IEnumerable<ContentNodeKit>
    View Source

    GetAllMediaSources()

    Declaration
    public IEnumerable<ContentNodeKit> GetAllMediaSources()
    Returns
    Type Description
    IEnumerable<ContentNodeKit>
    View Source

    GetBranchContentSources(Int32)

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

    GetBranchMediaSources(Int32)

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

    GetContentSource(Int32)

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

    GetMediaSource(Int32)

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

    GetMediaSource(IScope, Int32)

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

    GetTypeContentSources(Nullable<IEnumerable<Int32>>)

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

    GetTypeMediaSources(IEnumerable<Int32>)

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

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

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

    Declaration
    public 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

    RefreshContent(IContent)

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

    RefreshMedia(IMedia)

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

    RefreshMember(IMember)

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

    VerifyContentDbCache()

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

    VerifyMediaDbCache()

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

    VerifyMemberDbCache()

    Declaration
    public bool VerifyMemberDbCache()
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • NuCacheContentRepository(IScopeAccessor, AppCaches, ILogger<NuCacheContentRepository>, IMemberRepository, IDocumentRepository, IMediaRepository, IShortStringHelper, UrlSegmentProviderCollection, IContentCacheDataSerializerFactory, IOptions<NuCacheSettings>)
    • Methods
      • DeleteContentItem(IContentBase)
      • GetAllContentSources()
      • GetAllMediaSources()
      • GetBranchContentSources(Int32)
      • GetBranchMediaSources(Int32)
      • GetContentSource(Int32)
      • GetMediaSource(Int32)
      • GetMediaSource(IScope, Int32)
      • GetTypeContentSources(Nullable<IEnumerable<Int32>>)
      • GetTypeMediaSources(IEnumerable<Int32>)
      • Rebuild(Nullable<IReadOnlyCollection<Int32>>, Nullable<IReadOnlyCollection<Int32>>, Nullable<IReadOnlyCollection<Int32>>)
      • RefreshContent(IContent)
      • RefreshMedia(IMedia)
      • RefreshMember(IMember)
      • VerifyContentDbCache()
      • VerifyMediaDbCache()
      • VerifyMemberDbCache()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX