DataCacheHelperGetCachedObject Method (Guid, String, DataCacheHelperGetEventHandler2BaseInfo, Guid, String, String, Int32, Boolean, DataCacheHelperGetCacheDependencyEventHandlerBaseInfo, String) |
Gets the object by its GUID using the cache.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax public static BaseInfo GetCachedObject(
Guid guid,
string siteName,
DataCacheHelperGetEventHandler2<BaseInfo, Guid, string> handler,
string key,
int cacheMinutes,
bool requestCache,
DataCacheHelperGetCacheDependencyEventHandler<BaseInfo> dependencyCallback,
string context
)
Parameters
- guid
- Type: SystemGuid
Guid of the object - siteName
- Type: SystemString
Site name - handler
- Type: CMS.DataEngineDataCacheHelperGetEventHandler2BaseInfo, Guid, String
Handler to retrieve the object from the database - key
- Type: SystemString
Cache key to use - cacheMinutes
- Type: SystemInt32
Cache minutes - requestCache
- Type: SystemBoolean
Use request cache - dependencyCallback
- Type: CMS.DataEngineDataCacheHelperGetCacheDependencyEventHandlerBaseInfo
Callback to get the cache dependency for the object - context
- Type: SystemString
Context string
Return Value
Type:
BaseInfoSee Also