←Select platform

Cache Property

Summary

The cache to use with the new document.

Syntax
C#
C++/CLI
Java
Python
public ObjectCache Cache { get; set; } 
public:  
   property ObjectCache^ Cache 
   { 
      ObjectCache^ get() 
      void set(ObjectCache^ value) 
   } 
public ObjectCache getCache() 
public void setCache(ObjectCache value) 
Cache # get and set (UploadDocumentOptions) 

Property Value

The cache to use with the new document. Default value is null.

Remarks

The factory will use the cache stored in one of these locations:

  1. First, the object set in UploadDocumentOptions.Cache. If this value is not null, then it will be used. This allows the use of different cache objects for each document is required.

  2. If the previous member did not have a valid value, then the global object set in DocumentFactory.Cache is checked. If this value is not null, it will be used.

In either case, ObjectCache can be obtained from the document using GetCache and must be setup with a valid LEADTOOLS cache object. The policy to use with this new document to determine when to purge the cache items must be set in CachePolicy.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.