Saves the document to the cache.
public void SaveToCache()
Public Sub SaveToCache()
public void saveToCache()
Documents can contain many pages and huge amounts of data. Storing all this data in the physical memory is not feasible in most situations. Therefore, the LEADDocument class was designed to use an external caching system to store the modified document. Refer to DocumentFactory.Cache for more information.
Set AutoDeleteFromCache to true if your application uses caching to speed up processing the document and the object will not be used after it is disposed.
To save the document to the cache, call SaveToCache or set the value of AutoSaveToCache to true before disposing the document.
The document is only saved into the cache if the value of CacheStatus is DocumentCacheStatus.NotSynced. When SaveToCache returns successfully, the value of CacheStatus of the document will be DocumentCacheStatus and will contain the timestamp of the operation.
Refer to Document Toolkit and Caching for more information.
For an example, refer to DocumentId.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries