Leadtools.Medical.Caching Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.03.01
Cache Constructor(String,TimeSpan,Int64,String)
See Also 
Leadtools.Medical.Caching Namespace > Cache Class > Cache Constructor : Cache Constructor(String,TimeSpan,Int64,String)



context
A String which identifies the cache context, each user using the cache should have its own context.
itemExpireDuration
A TimeSpan value which specify how long an item remains in the cache.
bytesLimit
The cache maximum size in bytes.
storageDirectory
The physical directory path where cache items will be stored.
Creates a new instance of the Cache class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal context As String, _
   ByVal itemExpireDuration As TimeSpan, _
   ByVal bytesLimit As Long, _
   ByVal storageDirectory As String _
)
Visual Basic (Usage)Copy Code
Dim context As String
Dim itemExpireDuration As TimeSpan
Dim bytesLimit As Long
Dim storageDirectory As String
 
Dim instance As Cache(context, itemExpireDuration, bytesLimit, storageDirectory)
C# 
public Cache( 
   string context,
   TimeSpan itemExpireDuration,
   long bytesLimit,
   string storageDirectory
)
C++/CLI 
public:
Cache( 
   String^ context,
   TimeSpan itemExpireDuration,
   long bytesLimit,
   String^ storageDirectory
)

Parameters

context
A String which identifies the cache context, each user using the cache should have its own context.
itemExpireDuration
A TimeSpan value which specify how long an item remains in the cache.
bytesLimit
The cache maximum size in bytes.
storageDirectory
The physical directory path where cache items will be stored.

Remarks

This constructor uses the machine physical disk to store and retrieve cache information. The cache contents will be protected and encrypted so only the same user context who stored the cache item can retrieve and view the cached items.

Requirements

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

See Also

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