NonExistentFilesCacheEnabled Property

Whether the nonexistent files cache should be used.

Syntax

ANSI (Cross Platform)
int GetNonExistentFilesCacheEnabled();
int SetNonExistentFilesCacheEnabled(int bNonExistentFilesCacheEnabled); Unicode (Windows) BOOL GetNonExistentFilesCacheEnabled();
INT SetNonExistentFilesCacheEnabled(BOOL bNonExistentFilesCacheEnabled);
#define PID_CBFS_NONEXISTENTFILESCACHEENABLED 25

CBFSCONNECT_EXTERNAL void* CBFSCONNECT_CALL CBFSConnect_CBFS_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
CBFSCONNECT_EXTERNAL int CBFSCONNECT_CALL CBFSConnect_CBFS_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

FALSE

Remarks

This property controls whether the nonexistent files cache is enabled for a virtual drive. The size of the nonexistent files cache can be controlled using the NonExistentFilesCacheSize property.

When enabled, the class will cache any GetFileInfo responses that indicate that the requested file does not exist. If another request is later made for the same file, the class will use this information to automatically report a "file not found" error rather than firing the GetFileInfo event again.

Please refer to the Caching topic for more information.

Note: This property cannot be changed within events.

This property is not available at design time.

Data Type

Boolean

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