Saves the document to the cache.
saveToCache = function(document)
static saveToCache(document: Document): JQueryPromise<Document>;
The document to save. Must not be null.
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.
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.
Medical Web Viewer .NET