Leadtools.Dicom.Web Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
GetCache Method
See Also 
Leadtools.Dicom.Web Namespace > MedicalWebViewerStreamer Class : GetCache Method



userName
The user requesting the cache object.
cacheTimeout
A TimeSpan value representing the cache timeout.
cacheSize
The maximum cache size in bytes.
Retrieve a Cache object.

Syntax

Visual Basic (Declaration) 
Protected Overridable Function GetCache( _
   ByVal userName As String, _
   ByVal cacheTimeout As TimeSpan, _
   ByVal cacheSize As Integer _
) As Cache
Visual Basic (Usage)Copy Code
Dim instance As MedicalWebViewerStreamer
Dim userName As String
Dim cacheTimeout As TimeSpan
Dim cacheSize As Integer
Dim value As Cache
 
value = instance.GetCache(userName, cacheTimeout, cacheSize)
C# 
protected virtual Cache GetCache( 
   string userName,
   TimeSpan cacheTimeout,
   int cacheSize
)
C++/CLI 
protected:
virtual Cache GetCache( 
   String^ userName,
   TimeSpan cacheTimeout,
   int cacheSize
) 

Parameters

userName
The user requesting the cache object.
cacheTimeout
A TimeSpan value representing the cache timeout.
cacheSize
The maximum cache size in bytes.

Return Value

Returns a Cache object to store the information retrieved from the WCF service.

Remarks

Note to inheritors: Override this method to create your own type of cache storage mechanism, the current cache will store items on disk but you can use any other storage

Requirements

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

See Also

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