PurgePolicy Property

The file block purging strategy that the cache should use.

Syntax

public int PurgePolicy { get; set; }
Public Property PurgePolicy As Integer

Default Value

3

Remarks

This property specifies the strategy that the cache should use for purging unmodified blocks of file data from the cache. It must be set to one of the following values:

PURGE_POLICY_NONE0No automatic purging.

Use the Cleanup method to perform cache cleanup.

PURGE_POLICY_CLOSE1Purge files as they are closed (after a delay).

The PurgeAfterCloseDelay property specifies the delay interval.

PURGE_POLICY_CACHE_CLOSE2Purge files when the cache is closed.

PURGE_POLICY_TIME3Purge files when they haven't been accessed for a certain number of hours.

The PurgeAfterTime property specifies how many hours a file must remain unaccessed for it to be purged.

Note: This property cannot be changed when Active is true.

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