Click or drag to resize
DataCacheHelperGetCachedData Method
Gets the data using the cache.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
public static DataSet GetCachedData(
	string where,
	string orderBy,
	int topN,
	string columns,
	DataCacheHelperGetEventHandler4<DataSet, string, string, int, string> handler,
	string key,
	int cacheMinutes,
	bool requestCache,
	DataCacheHelperGetCacheDependencyEventHandler<DataSet> dependencyCallback,
	string context
)

Parameters

where
Type: SystemString
Where condition
orderBy
Type: SystemString
Order by clause
topN
Type: SystemInt32
Top N users
columns
Type: SystemString
Columns to get
handler
Type: CMS.DataEngineDataCacheHelperGetEventHandler4DataSet, String, String, Int32, String
Handler to retrieve the data from the database
key
Type: SystemString
Cache key to use
cacheMinutes
Type: SystemInt32
Cache minutes
requestCache
Type: SystemBoolean
Use request cache
dependencyCallback
Type: CMS.DataEngineDataCacheHelperGetCacheDependencyEventHandlerDataSet
Callback to get the cache dependency for the object
context
Type: SystemString
Context string

Return Value

Type: DataSet
See Also