Clear Method

Removes files from the cache.

Syntax

public void Clear(bool removeOrphans, bool removeLocals);
Public Sub Clear(ByVal RemoveOrphans As Boolean, ByVal RemoveLocals As Boolean)

Remarks

This method removes all files from the cache which are fully flushed and currently closed. Depending on the value passed for RemoveOrphans and RemoveLocals, Orphan Files and/or Local Files may also be removed as well.

The operation is performed synchronously, so this method returns once all applicable files have been removed. During the operation, the Progress event will fire periodically to indicate progress.

.NET Standard Notes

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

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