Click or drag to resize
CacheHelperTryGetItemOutputType Method (String, Boolean, OutputType, Boolean)
Returns true if the cache contains the item with specified key.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
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: Boolean
See Also