View Source
Class NuCacheContentService
Inheritance
System.Object
Assembly: Umbraco.PublishedCache.NuCache.dll
Syntax
public class NuCacheContentService : RepositoryService, INuCacheContentService
Constructors
View Source
NuCacheContentService(INuCacheContentRepository, IKeyValueService, ICoreScopeProvider, ILoggerFactory, IProfilingLogger, IEventMessagesFactory, IOptions<NuCacheSettings>)
Declaration
public NuCacheContentService(INuCacheContentRepository repository, IKeyValueService keyValueService, ICoreScopeProvider provider, ILoggerFactory loggerFactory, IProfilingLogger profilingLogger, IEventMessagesFactory eventMessagesFactory, IOptions<NuCacheSettings> nucacheSettings)
Parameters
Type |
Name |
Description |
INuCacheContentRepository |
repository |
|
IKeyValueService |
keyValueService |
|
ICoreScopeProvider |
provider |
|
ILoggerFactory |
loggerFactory |
|
IProfilingLogger |
profilingLogger |
|
IEventMessagesFactory |
eventMessagesFactory |
|
IOptions<NuCacheSettings> |
nucacheSettings |
|
Methods
View Source
DeleteContentItem(IContentBase)
Declaration
public void DeleteContentItem(IContentBase item)
Parameters
Type |
Name |
Description |
IContentBase |
item |
|
View Source
DeleteContentItems(IEnumerable<IContentBase>)
Declaration
public void DeleteContentItems(IEnumerable<IContentBase> items)
Parameters
Type |
Name |
Description |
IEnumerable<IContentBase> |
items |
|
View Source
GetAllContentSources()
Returns all content ordered by level + sortOrder
Declaration
public IEnumerable<ContentNodeKit> GetAllContentSources()
Returns
View Source
GetAllMediaSources()
Returns all media ordered by level + sortOrder
Declaration
public IEnumerable<ContentNodeKit> GetAllMediaSources()
Returns
View Source
GetBranchContentSources(Int32)
Returns branch for content ordered by level + sortOrder
Declaration
public IEnumerable<ContentNodeKit> GetBranchContentSources(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetBranchMediaSources(Int32)
Returns branch for media ordered by level + sortOrder
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
GetTypeContentSources(Nullable<IEnumerable<Int32>>)
Returns content by Ids ordered by level + sortOrder
Declaration
public IEnumerable<ContentNodeKit> GetTypeContentSources(IEnumerable<int>? ids)
Parameters
Type |
Name |
Description |
System.Nullable<IEnumerable<System.Int32>> |
ids |
|
Returns
View Source
GetTypeMediaSources(IEnumerable<Int32>)
Returns media by Ids ordered by level + sortOrder
Declaration
public IEnumerable<ContentNodeKit> GetTypeMediaSources(IEnumerable<int> ids)
Parameters
Type |
Name |
Description |
IEnumerable<System.Int32> |
ids |
|
Returns
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
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
RebuildAll()
Declaration
View Source
RebuildDatabaseCacheIfSerializerChanged()
Declaration
public void RebuildDatabaseCacheIfSerializerChanged()
View Source
RefreshContent(IContent)
Refreshes the nucache database row for the
Declaration
public void RefreshContent(IContent content)
Parameters
Type |
Name |
Description |
IContent |
content |
|
View Source
RefreshMedia(IMedia)
Refreshes the nucache database row for the
Declaration
public void RefreshMedia(IMedia media)
Parameters
Type |
Name |
Description |
IMedia |
media |
|
View Source
RefreshMember(IMember)
Refreshes the nucache database row for the
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 |
|