DataCacheHelperGetCached2ReturnType, P1Type, P2Type Method |
Gets the data using the cache.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax public static ReturnType GetCached2<ReturnType, P1Type, P2Type>(
P1Type param1,
P2Type param2,
DataCacheHelperGetEventHandler2<ReturnType, P1Type, P2Type> handler,
string key,
int cacheMinutes,
bool requestCache,
DataCacheHelperGetCacheDependencyEventHandler<ReturnType> dependencyCallback,
string context
)
Parameters
- param1
- Type: P1Type
First parameter - param2
- Type: P2Type
Second parameter - handler
- Type: CMS.DataEngineDataCacheHelperGetEventHandler2ReturnType, P1Type, P2Type
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.DataEngineDataCacheHelperGetCacheDependencyEventHandlerReturnType
Callback to get the cache dependency for the object - context
- Type: SystemString
Context string
Type Parameters
- ReturnType
- Return type
- P1Type
- First parameter type
- P2Type
- Second parameter type
Return Value
Type:
ReturnTypeSee Also