Discuss this help topic in CBFS Forum

CallbackFileSystem.CacheSize property


Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

CallbackFileSystem     See also    


Specifies the size of the file cache.


    property CacheSize : LongWord;

[C++ (Lib)]
    WORD GetCacheSize();
    void SetCacheSize(WORD Value);

[C++ (VCL)]
    unsigned long CacheSize;

[C++ (.NET)]
    UInt32 CacheSize;

    UInt32 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).

See also

CachePolicyPurgeOnClose property     CachePolicyWriteThrough property     FileCacheEnabled property     FileCacheType property    

Discuss this help topic in CBFS Forum