Interface IPublishedContentTypeCache
Namespace: Umbraco.Cms.Core.PublishedCache
Assembly: Umbraco.Core.dll
Syntax
public interface IPublishedContentTypeCache
Methods
View SourceClearAll()
Clears the entire cache.
Declaration
void ClearAll()
ClearByDataTypeId(int)
Clears all cached content types referencing a data type.
Declaration
IEnumerable<IPublishedContentType> ClearByDataTypeId(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The data type id to remove content types by |
Returns
| Type | Description |
|---|---|
| IEnumerable<IPublishedContentType> | The removed content types |
ClearContentType(int)
Clears a cached content type.
Declaration
void ClearContentType(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | An identifier. |
ClearContentTypes(IEnumerable<int>)
Clears cached content types.
Declaration
void ClearContentTypes(IEnumerable<int> ids)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<int> | ids | ContentType IDs to clear |
ClearDataType(int)
Clears all cached content types referencing a data type.
Declaration
void ClearDataType(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | A data type identifier. |
Get(PublishedItemType, Guid)
Gets a published content type.
Declaration
IPublishedContentType Get(PublishedItemType itemType, Guid key)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedItemType | itemType | An item type. |
| Guid | key | An key. |
Returns
| Type | Description |
|---|---|
| IPublishedContentType | The published content type corresponding to the item key. |
Get(PublishedItemType, int)
Gets a published content type.
Declaration
IPublishedContentType Get(PublishedItemType itemType, int id)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedItemType | itemType | An item type. |
| int | id | An identifier. |
Returns
| Type | Description |
|---|---|
| IPublishedContentType | The published content type corresponding to the item type and identifier. |
Get(PublishedItemType, string)
Gets a published content type.
Declaration
IPublishedContentType Get(PublishedItemType itemType, string alias)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedItemType | itemType | An item type. |
| string | alias | An alias. |
Returns
| Type | Description |
|---|---|
| IPublishedContentType | The published content type corresponding to the item type and alias. |