Share via


IExtensionMetadataCache Interface

Definition

An interface for an optional cache to be utilized by extension metadata service.

public interface IExtensionMetadataCache
type IExtensionMetadataCache = interface
Public Interface IExtensionMetadataCache

Remarks

The cache is designed to rely on file last modified timestamps for entry validation.

Methods

GetExtensionsAsync(String, CancellationToken)

Gets the extensions for a given data moniker type.

InsertExtensionDataAsync<T>(ExtensionIdentificationToken, IEnumerable<String>, String, Func<Task<IReadOnlyDictionary<String,T>>>, CancellationToken)

Updates specified section entries for an extension.

RemoveExtensionDataAsync(ExtensionIdentificationToken, CancellationToken)

Removes all extension data for the given extension.

TryReadFromCacheAsync<T>(ExtensionIdentificationToken, String, String, CancellationToken)

Reads cached entry for a given extension, section name and data moniker.

Applies to