Open sandboxFocus

Method CleanUpAsync

CleanUpAsync(CacheCleanupOptions, CancellationToken)

Asynchronously verifies the cache consistency and fix errors where possible.

Declaration
public virtual Task<bool> CleanUpAsync(CacheCleanupOptions options = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CacheCleanupOptions options

Options.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
Task<bool>

true if an inconsistency was found, false otherwise.