namespace Umbraco.Cms.Core.Deploy; /// /// A pass through context cache that always creates the items. /// /// public sealed class PassThroughCache : IContextCache { /// /// Gets the instance. /// /// /// The instance. /// public static PassThroughCache Instance { get; } = new PassThroughCache(); /// /// Prevents a default instance of the class from being created. /// private PassThroughCache() { } /// public void Create(string key, T item) { } /// public T? GetOrCreate(string key, Func factory) => factory(); /// public async Task GetOrCreateAsync(string key, Func> factory) => await factory().ConfigureAwait(false); /// public void Clear() { } }