←Select platform

Cache Constructor(string,TimeSpan,long,string)

Summary

Creates a new instance of the Cache class.

Syntax

C#
VB
C++
public Cache( 
   string context, 
   TimeSpan itemExpireDuration, 
   long bytesLimit, 
   string storageDirectory 
) 
  
Public Function New( _ 
   ByVal context As String, _ 
   ByVal itemExpireDuration As TimeSpan, _ 
   ByVal bytesLimit As Long, _ 
   ByVal storageDirectory As String _ 
) 
public: 
Cache(  
   String^ context, 
   TimeSpan itemExpireDuration, 
   int64 bytesLimit, 
   String^ 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

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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Caching Assembly