| 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 | 
|---|---|
 | |
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.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
Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family