CacheBase<T>.PreCacheAsync Method

Definition

Assures that item represented by Uri is cached.

public System.Threading.Tasks.Task PreCacheAsync (Uri uri, bool throwOnError = false, bool storeToMemoryCache = false, System.Threading.CancellationToken cancellationToken = default);
member this.PreCacheAsync : Uri * bool * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function PreCacheAsync (uri As Uri, Optional throwOnError As Boolean = false, Optional storeToMemoryCache As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

uri
Uri

Uri of the item

throwOnError
Boolean

Indicates whether or not exception should be thrown if item cannot be cached

storeToMemoryCache
Boolean

Indicates if item should be loaded into the in-memory storage

cancellationToken
CancellationToken

instance of CancellationToken

Returns

Awaitable Task

Applies to