The Cache Constructor(String,TimeSpan,Int64,String) is available as an add-on to the LEADTOOLS Medical Imaging toolkits.
Creates a new instance of the
Cache class.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim context As String
Dim itemExpireDuration As TimeSpan
Dim bytesLimit As Long
Dim storageDirectory As String
Dim instance As New Cache(context, itemExpireDuration, bytesLimit, storageDirectory) |
Parameters
- context
- A System.String which identifies the cache context, each user using the cache should have its own context.
- itemExpireDuration
- A System.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
Requirements
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also