Leadtools.Medical.Caching Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.03.01
Cache Class
See Also  Members  
Leadtools.Medical.Caching Namespace : Cache Class



Represents a user context store of items.

Syntax

Visual Basic (Declaration) 
<DefaultMemberAttribute("Item")>
Public Class Cache 
Visual Basic (Usage)Copy Code
Dim instance As Cache
C# 
[DefaultMemberAttribute("Item")]
public class Cache 
C++/CLI 
[DefaultMemberAttribute("Item")]
public ref class Cache 

Remarks

The Cache class uses an object of IStorageProvider to store and retrieve cached items. Use the one of the overloaded constructors to create an object of this class.

The cache store will be maintained by deleting expired items, this is decided by the ItemExpireDuration. If the cache store is full and the CurrentSize exceeded the BytesLimit and there are no items expired then items with the lowest priority CacheItemPriority will be deleted until the cache CurrentSize is less than the BytesLimit.

To force the Cache to update and maintain the cache store call the Update method. The Cache class internally calls this method regularly and after adding or inserting new items.

For more information about implementing custom cache storage check Client Side Web Service

Inheritance Hierarchy

System.Object
   Leadtools.Medical.Caching.Cache

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Cache requires a Web Viewer Framework Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features