Specifies the size of the file cache.
property CacheSize : LongWord;
void SetCacheSize(WORD Value);
unsigned long CacheSize;
Public Property CacheSize As UInt32
& void setCacheSize(long value);
Callback File System 5 and later maintains its own cache for file data. Use this property to control the size of the cache. The property is effective only when FileCacheType property is set to fctUser (and the default value is fctKernel in CBFS 6).
The size is specified in bytes with granularity of 64 Kb (i.e. the value must be a multiple of 65536). Default value is 300Mb. This memory is reserved but not allocated until needed. If the requested size is not available, CBFS continuously attempts to reserve smaller amounts.
The cache is allocated on per-process basis in user-mode memory. This means that if you have several CallbackFileSystem objects, they will share the same cache and changing Cache* properties for one object will result in process-wide changes.
Cache size may be adjusted only when no virtual disks use the cache (eg. the disk has not been mounted or all instances of CallbackFileSystem object have caching disabled with FileCacheEnabled property set to false).