Discuss this help topic in CBFS Forum

CallbackFileSystem.CachePolicyPurgeOnClose property


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

CallbackFileSystem     See also    


Specifies whether file data is removed from the cache when the file is closed.


    property CachePolicyPurgeOnClose : boolean;

[C++ (Lib)]
    bool GetCachePolicyPurgeOnClose();
    void SetCachePolicyPurgeOnClose(BOOL Value);

[C++ (VCL)]
    bool CachePolicyPurgeOnClose;

[C++ (.NET)]
    bool CachePolicyPurgeOnClose;

    bool CachePolicyPurgeOnClose;

    Public Property CachePolicyPurgeOnClose As Boolean

    boolean getCachePolicyPurgeOnClose();
    void setCachePolicyPurgeOnClose(boolean value)


Use this property to tell the driver whether file data must remain in the cache or be removed from the cache when the file is closed. By default CachePolicyPurgeOnClose is false and the driver keeps the data for future use.

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.

Call from...

The property may be changed only after the successful call to MountMedia() method and only from outside of callback / event handlers.

See also

CachePolicyWriteThrough     CacheSize     FileCacheEnabled    

Discuss this help topic in CBFS Forum