CacheSizeLimit Property

The maximum size of the cache's storage file.

Syntax

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

Default Value

0

Remarks

This property specifies the maximum size, in megabytes, that the cache's storage file is allowed to grow to. If this limit is reached, the cache will initiate a background cleanup operation automatically, purging file data according to the PurgePolicy and shrinking the cache storage file afterwards. By default, this property is set to 0, which means "no limit".

Note that any purging and shrinking attempts caused by this property's value are made on a "best effort" basis, which can be impacted by:

  • The amount of UnflushedData present in the cache; if it is greater than the specified size limit, the cache will not be able to purge said data or shrink its storage file until enough data has been flushed.
  • The PurgePolicy property; certain values can make it impossible for the cache to immediately perform the required purging.

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]