Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal context As String, _ ByVal itemExpireDuration As TimeSpan, _ ByVal bytesLimit As Long, _ ByVal provider As IStorageProvider _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public Cache( string context, TimeSpan itemExpireDuration, long bytesLimit, IStorageProvider provider ) |
C++/CLI | |
---|---|
public: Cache( String^ context, TimeSpan itemExpireDuration, long bytesLimit, IStorageProvider^ provider ) |
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.
- provider
- An object which implements the IStorageProvider to store and retrieve cache items.
Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family