View Source
Class NuCacheContentRepository
Inheritance
System.Object
Assembly: Umbraco.PublishedCache.NuCache.dll
Syntax
public class NuCacheContentRepository : RepositoryBase, IRepository, INuCacheContentRepository
Constructors
View Source
NuCacheContentRepository(IScopeAccessor, AppCaches, ILogger<NuCacheContentRepository>, IMemberRepository, IDocumentRepository, IMediaRepository, IShortStringHelper, UrlSegmentProviderCollection, IContentCacheDataSerializerFactory, IOptions<NuCacheSettings>)
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
Methods
View Source
DeleteContentItem(IContentBase)
Declaration
public void DeleteContentItem(IContentBase item)
Parameters
View Source
GetAllContentSources()
Declaration
public IEnumerable<ContentNodeKit> GetAllContentSources()
Returns
View Source
GetAllMediaSources()
Declaration
public IEnumerable<ContentNodeKit> GetAllMediaSources()
Returns
View Source
GetBranchContentSources(Int32)
Declaration
public IEnumerable<ContentNodeKit> GetBranchContentSources(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetBranchMediaSources(Int32)
Declaration
public IEnumerable<ContentNodeKit> GetBranchMediaSources(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetContentSource(Int32)
Declaration
public ContentNodeKit GetContentSource(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetMediaSource(Int32)
Declaration
public ContentNodeKit GetMediaSource(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetMediaSource(IScope, Int32)
Declaration
public ContentNodeKit GetMediaSource(IScope scope, int id)
Parameters
Type |
Name |
Description |
IScope |
scope |
|
System.Int32 |
id |
|
Returns
View Source
GetTypeContentSources(IEnumerable<Int32>)
Declaration
public IEnumerable<ContentNodeKit> GetTypeContentSources(IEnumerable<int> ids)
Parameters
Type |
Name |
Description |
IEnumerable<System.Int32> |
ids |
|
Returns
View Source
GetTypeMediaSources(IEnumerable<Int32>)
Declaration
public IEnumerable<ContentNodeKit> GetTypeMediaSources(IEnumerable<int> ids)
Parameters
Type |
Name |
Description |
IEnumerable<System.Int32> |
ids |
|
Returns
View Source
Rebuild(IReadOnlyCollection<Int32>, IReadOnlyCollection<Int32>, IReadOnlyCollection<Int32>)
Declaration
public void Rebuild(IReadOnlyCollection<int> contentTypeIds = null, IReadOnlyCollection<int> mediaTypeIds = null, IReadOnlyCollection<int> memberTypeIds = null)
Parameters
Type |
Name |
Description |
IReadOnlyCollection<System.Int32> |
contentTypeIds |
|
IReadOnlyCollection<System.Int32> |
mediaTypeIds |
|
IReadOnlyCollection<System.Int32> |
memberTypeIds |
|
View Source
RefreshContent(IContent)
Declaration
public void RefreshContent(IContent content)
Parameters
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 |
|