Saves the document to the cache.
saveToCache = function(document)
static saveToCache(document: Document): JQueryPromise<Document>;
document
The document to save. Must not be null.
A Promise object that may resolve successfully to a Document object, or fail if the Document cannot be saved to the cache.
<returns> A Promise object that may resolve successfully to a Document object, or fail if the Document cannot be saved to the cache. </returns>
Documents can contain large number of pages and huge amount of data. Storing all this data in the physical memory is not feasible in most situations. Therefore, the Document class was designed to use an external caching system to store the modified.
SaveToCache can be used to save a document to the cache and re-loading it using DocumentFactory.LoadFromCache.
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.Synced and the value of LastCacheSyncTime will contain the timestamp of the operation.
Refer to Document Toolkit and Caching for more information.
For an example, refer to Create.
Products |
Support |
Feedback: saveToCache Method (DocumentFactory) - Leadtools.Documents |
Introduction |
Help Version 19.0.2017.3.21
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.