CacheControllerCacheResultset Method (CacheKey, String, TimeSpan, CachedResultset, Boolean, String) |
Caches the resultset specified under the key specified in the cache related to the connection string for the duration specified.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax public static void CacheResultset(
CacheKey key,
string connectionString,
TimeSpan duration,
CachedResultset toCache,
bool overwriteIfPresent,
string tag
)
Public Shared Sub CacheResultset (
key As CacheKey,
connectionString As String,
duration As TimeSpan,
toCache As CachedResultset,
overwriteIfPresent As Boolean,
tag As String
)
Parameters
- key
- Type: SD.LLBLGen.Pro.ORMSupportClassesCacheKey
The key. - connectionString
- Type: SystemString
The connection string the cache is registered under. Can be empty string. If null,
the empty string is assumed - duration
- Type: SystemTimeSpan
The duration. - toCache
- Type: SD.LLBLGen.Pro.ORMSupportClassesCachedResultset
To cache. - overwriteIfPresent
- Type: SystemBoolean
if set to true it will replace an existing cached set with the one specified. - tag
- Type: SystemString
The tag under which the resultset is cached.
Exceptions Remarks
If no cache is registered related to the connectionstring, this method is a no-op, no caching takes place
See Also