Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.10.29
|
Leadtools.Medical.Caching Namespace > Cache Class > Cache Constructor : Cache Constructor(String,TimeSpan,Int64,String,Boolean) |
public Cache( string context, TimeSpan itemExpireDuration, long bytesLimit, string storageDirectory, bool encryptData )
'Declaration Public Function New( _ ByVal context As String, _ ByVal itemExpireDuration As TimeSpan, _ ByVal bytesLimit As Long, _ ByVal storageDirectory As String, _ ByVal encryptData As Boolean _ )
'Usage Dim context As String Dim itemExpireDuration As TimeSpan Dim bytesLimit As Long Dim storageDirectory As String Dim encryptData As Boolean Dim instance As New Cache(context, itemExpireDuration, bytesLimit, storageDirectory, encryptData)
public: Cache( String^ context, TimeSpan itemExpireDuration, int64 bytesLimit, String^ storageDirectory, bool encryptData )
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.
If you don't want the cache information to be encrypted, set the encryptData to false.