IResultsetCache.Add Method (CacheKey, CachedResultset, TimeSpan, Boolean) |
Adds the specified toCache to this cache under the key specified for the duration specified
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.12.0.0 (5.12.0)
Syntaxvoid Add(
CacheKey key,
CachedResultset toCache,
TimeSpan duration,
bool overwriteIfPresent
)
Sub Add (
key As CacheKey,
toCache As CachedResultset,
duration As TimeSpan,
overwriteIfPresent As Boolean
)
Parameters
- key
- Type: SD.LLBLGen.Pro.ORMSupportClasses.CacheKey
The key. - toCache
- Type: SD.LLBLGen.Pro.ORMSupportClasses.CachedResultset
The resultset to cache - duration
- Type: System.TimeSpan
The duration how long the resultset will stay in the cache. - overwriteIfPresent
- Type: System.Boolean
if set to true it will replace an existing cached set with the one specified.
See Also