Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.7
|
Leadtools.Caching Assembly > Leadtools.Caching Namespace > FileCache Class : AccessTimeout Property |
public TimeSpan AccessTimeout {get; set;}
'Declaration
Public Property AccessTimeout As TimeSpan
'Usage
Dim instance As FileCache Dim value As TimeSpan instance.AccessTimeout = value value = instance.AccessTimeout
public long getAccessTimeout() public void setAccessTimeout(long value)
The cache uses a file system and the items can be accessed by multiple threads or even processes at the same. When the cache is updating a cache item or its policy, the file on disk is opened with exclusive write access. Meaning if another thread or process is trying to access the same item, an error is occurred. In this case, the cache will re-try the access at specified small intervals till it succeeds. If it cannot access the file after AccessTimeout, the exception is thrown.