| IResultsetCacheAdd Method (CacheKey, CachedResultset, TimeSpan, Boolean, String) | 
 
            Adds the specified toCache to this cache under the key specified for the duration specified and assigns the tag specified to it.
            
 
    Namespace: 
   SD.LLBLGen.Pro.ORMSupportClasses
    Assembly:
   SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.1.0.0 (5.1.0)
Syntaxvoid Add(
	CacheKey key,
	CachedResultset toCache,
	TimeSpan duration,
	bool overwriteIfPresent,
	string tag
)
Sub Add ( 
	key As CacheKey,
	toCache As CachedResultset,
	duration As TimeSpan,
	overwriteIfPresent As Boolean,
	tag As String
)
Parameters
- key
 - Type: SD.LLBLGen.Pro.ORMSupportClassesCacheKey
The key. - toCache
 - Type: SD.LLBLGen.Pro.ORMSupportClassesCachedResultset
The resultset to cache - duration
 - Type: SystemTimeSpan
The duration how long the resultset will stay in the 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 has to be cached. 
See Also