Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents Namespace > CreateDocumentOptions Class : Cache Property |
public ObjectCache Cache {get; set;}
'Declaration
Public Property Cache As ObjectCache
'Usage
Dim instance As CreateDocumentOptions Dim value As ObjectCache instance.Cache = value value = instance.Cache
public ObjectCache getCache() public void setCache(ObjectCache value)
public: property ObjectCache^ Cache { ObjectCache^ get(); void set ( ObjectCache^ value); }
The factory will use the cache stored in one of these locations:
First, the object set in CreateDocumentOptions.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.
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 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.