Interface IPublishedMediaCache
Namespace: Umbraco.Cms.Core.PublishedCache
Assembly: Umbraco.Core.dll
Syntax
public interface IPublishedMediaCache : IPublishedCacheMethods
View SourceGetByIdAsync(Guid)
Gets a content identified by its unique identifier.
Declaration
Task<IPublishedContent> GetByIdAsync(Guid key)Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | key | The content unique identifier. | 
Returns
| Type | Description | 
|---|---|
| Task<IPublishedContent> | The content, or null. | 
Remarks
Considers published or unpublished content depending on defaults.
GetByIdAsync(Int32)
Gets a content identified by its unique identifier.
Declaration
Task<IPublishedContent> GetByIdAsync(int id)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | id | The content unique identifier. | 
Returns
| Type | Description | 
|---|---|
| Task<IPublishedContent> | The content, or null. | 
Remarks
Considers published or unpublished content depending on defaults.