Error processing SSI file
LEADTOOLS Leadtools.Documents (Leadtools.Documents assembly)

Show in webframe

Cache Property (DocumentFactory)






The LEADTOOLS File Cache object responsible for managing cache items and expiration policies.
Syntax
public static FileCache Cache {get; set;}
'Declaration
 
Public Shared Property Cache As FileCache
'Usage
 
Dim value As FileCache
 
DocumentFactory.Cache = value
 
value = DocumentFactory.Cache
public static ObjectCache getCache()
public void sbjectCache getCache(static value)
            
public:
static property FileCache^ Cache {
   FileCache^ get();
   void set (    FileCache^ value);
}

Property Value

The cache object responsible for managing cache items and expiration policies. Default value is null.
Remarks

A large portion of the Documents class library requires the use of a cache system. This includes almost all of the write support. 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 Documents library was designed to use an external caching system to store the modified parts of the document.

Using a large will also increase the performance when getting page data such as an image or text. The result will be parsed once from the physical file on disk, processed and then stored in the cache. Subsequent calls to the same data will simply retrieve it from the cache without any extra processing.

The LEADTOOLS Documents Web Service requires the use of a cache. Web methods are sessionless by nature and with cache support, the service can use SaveToCache and LoadFromCache to save/load the document state in between calls without the need for session state.

In almost all cases, the cache object is initialized and set into Cache at the start of the application and then never touched. The DocumentFactory and Document classes will use this global value for all the caching needs.

Setting up a FileCache object is easy. The only input required is the path to a directory on disk or network share where the cache items are stored.

Generally, the cache is used in two ways depending on the type of the application:

Example

For an example, refer to DocumentFactory

Requirements

Target Platforms

See Also

Reference

DocumentFactory Class
DocumentFactory Members

Error processing SSI file
   Leadtools.Documents requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features