CBFS Connect 2020 Java Edition

Questions / Feedback?

FileCache Property

Which file data cache implementation to use.

Syntax

public int getFileCache();
public void setFileCache(int fileCache);

Enumerated values: public final static int fcNone = 0; public final static int fcSystem = 1; public final static int fcInternalKernelMode = 2; public final static int fcInternalUserMode = 3;

Default Value

1

Remarks

This property specifies which file data cache implementation a virtual drive should use, if any. Possible values are:

  • fcNone (0): Do not use file data caching.
  • fcSystem (1, default): Delegate file data caching to the Windows file management system cache (recommended).
  • fcInternalKernelMode (2): Use the CBFS kernel mode file data cache implementation.
  • fcInternalUserMode (3): Use the CBFS user mode file data cache implementation.
When the cache is enabled, commonly-used file data will be cached to help reduce the number of times the ReadFile and WriteFile events are fired.

When set to fcInternalUserMode (3), the UserModeFileCacheSize configuration setting can be used to control the cache size.

Please refer to the Caching topic for detailed information on each of the cache implementations.

Note: This property cannot be changed within events.

Copyright (c) 2022 Callback Technologies, Inc. - All rights reserved.
CBFS Connect 2020 Java Edition - Version 20.0 [Build 8348]