CacheBase<T>.PreCacheAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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