←Select platform

CacheDirectory Property

Summary

Location in the file system to use for storing cache items.

Syntax
C#
C++/CLI
Java
Python
public string CacheDirectory { get; set; } 
public:  
   property String^ CacheDirectory 
   { 
      String^ get() 
      void set(String^ value) 
   } 
public String getCacheDirectory() 
public void setCacheDirectory(String value) 
CacheDirectory # get and set (FileCache) 

Property Value

The location in the file system to use for storing cache items. Default value is null.

Remarks

This is the first property to set after an instance of FileCache is created. It must point to a valid directory on the file system or a network share with read/write access rights for the current process.

GetItemExternalResource can be used to get the physical file name of any cache item. This is performed using the following:

filePath = Path.Combine(CacheDirectory, RegionName, ItemName)
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.Caching Assembly

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