Discuss this help topic in CBFS Forum

CallbackFileSystem.CachePolicyWriteThrough property


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

CallbackFileSystem     See also    


Specifies whether the file data is written synchronously to the cache and via OnWriteFile callback/event/delegate


    property CachePolicyWriteThrough : boolean;

[C++ (Lib)]
    bool GetCachePolicyWriteThrough();
    void SetCachePolicyWriteThrough(BOOL Value);

[C++ (VCL)]
    bool CachePolicyWriteThrough;

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

    bool CachePolicyWriteThrough;

    Public Property CachePolicyWriteThrough As Boolean

    boolean getCachePolicyWriteThrough();
    void setCachePolicyWriteThrough(boolean value)


Use this property to tell the driver whether file data must be first put to the the cache or be written to the cache and OnFileWrite callback/event/delegate should be called at the same time. By default CachePolicyWriteThrough is false and the driver first write the data to the cache and then flushes the cache asynchronously.

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

CachePolicyPurgeOnClose     CacheSize     FileCacheEnabled    

Discuss this help topic in CBFS Forum