CacheHelperTryGetItemOutputType Method (String, Boolean, OutputType, Boolean) |
Returns true if the cache contains the item with specified key.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax public static bool TryGetItem<OutputType>(
string key,
bool caseSensitive,
out OutputType output,
bool logOperation = true
)
Parameters
- key
- Type: SystemString
Cache key - caseSensitive
- Type: SystemBoolean
Cache key is case sensitive - output
- Type: OutputType
Returning the value of the object - logOperation (Optional)
- Type: SystemBoolean
Log the cache operation
Type Parameters
- OutputType
Return Value
Type:
BooleanSee Also