Open sandboxFocus

Method CleanUpAsync

CleanUpAsync(CacheCleanupOptions, CancellationToken)

Asynchronously verifies the cache consistency and fixes errors where possible.

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

The cleanup options.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
Task<bool>

true if an inconsistency was found, false otherwise.