Cleanup Method

Starts a background cleanup operation to remove unused files from the cache.

Syntax

public void Cleanup(int maxAge);
Public Sub Cleanup(ByVal MaxAge As Integer)

Remarks

This method starts a cleanup operation to remove unused files from the cache. Files used earlier than MaxAge hours ago will be removed (passing 0 for will cause all files to be removed).

The cleanup operation is performed asynchronously in a background thread, so this method returns immediately. To cancel a cleanup operation, use the CancelCleanup method.

.NET Standard Notes

To call this method in an asynchronous manner call CleanupAsync instead. When the method completes (or an error is encountered) the CleanupCompleted event will fire.

 
 
Copyright (c) 2020 Callback Technologies, Inc. - All rights reserved.
CBFS Cache 2020 .NET Edition - Version 20.0 [Build 7647]