Click or drag to resize

ResultsetCacheAdd Method (CacheKey, CachedResultset, TimeSpan)

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.7.0.0 (5.7.0)
Syntax
public void Add(
	CacheKey key,
	CachedResultset toCache,
	TimeSpan duration
)

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.

Implements

IResultsetCacheAdd(CacheKey, CachedResultset, TimeSpan)
Remarks
If an object is already present under 'key', Add is a no-op.
See Also