ISolutionCacheService.PrefetchContainerAsync 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.
Ensures that container contents are prefetched to local cache.
public:
System::Threading::Tasks::Task<bool> ^ PrefetchContainerAsync(Microsoft::VisualStudio::RpcContracts::Caching::CacheContainerKey ^ containerKey, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> PrefetchContainerAsync (Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey containerKey, System.Threading.CancellationToken cancellationToken);
abstract member PrefetchContainerAsync : Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function PrefetchContainerAsync (containerKey As CacheContainerKey, cancellationToken As CancellationToken) As Task(Of Boolean)
Parameters
- containerKey
- CacheContainerKey
Cache container key that describes the container.
- cancellationToken
- CancellationToken
Cancellation token to monitor.
Returns
a Task indication completion of prefetch, false is returned if container was not found in the cache.
Exceptions
Thrown when caller has no write permissions.