View Source
Assembly: Umbraco.Core.dll
public interface IMediaCacheService
Methods
View Source
Declaration
Task ClearMemoryCacheAsync(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
View Source
DeleteItemAsync(IContentBase)
Declaration
Task DeleteItemAsync(IContentBase media)
Parameters
Returns
View Source
GetByContentType(IPublishedContentType)
Declaration
IEnumerable<IPublishedContent> GetByContentType(IPublishedContentType contentType)
Parameters
Returns
View Source
Declaration
Task<IPublishedContent> GetByIdAsync(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
Declaration
Task<IPublishedContent> GetByKeyAsync(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
View Source
HasContentByIdAsync(Int32)
Declaration
Task<bool> HasContentByIdAsync(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
Task<System.Boolean> |
|
View Source
Declaration
void Rebuild(IReadOnlyCollection<int> contentTypeIds)
Parameters
Type |
Name |
Description |
IReadOnlyCollection<System.Int32> |
contentTypeIds |
|
View Source
RebuildMemoryCacheByContentTypeAsync(IEnumerable<Int32>)
Declaration
Task RebuildMemoryCacheByContentTypeAsync(IEnumerable<int> mediaTypeIds)
Parameters
Type |
Name |
Description |
IEnumerable<System.Int32> |
mediaTypeIds |
|
Returns
View Source
Declaration
Task RefreshMediaAsync(IMedia media)
Parameters
Type |
Name |
Description |
IMedia |
media |
|
Returns
View Source
Declaration
Task RefreshMemoryCacheAsync(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
View Source
Declaration
Task RemoveFromMemoryCacheAsync(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
View Source
Declaration
Task SeedAsync(CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns