CacheHelper.TouchKey Method (String, Boolean, Boolean, DateTime, Boolean) |
Touches the cache key to drop the dependencies.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntaxpublic static void TouchKey(
string key,
bool logTask,
bool ensureKey,
DateTime expiration,
bool logOperation
)
Parameters
- key
- Type: System.String
Key to touch - logTask
- Type: System.Boolean
Log web farm task - ensureKey
- Type: System.Boolean
If true, the keys must be present in the cache, if false, the non-existing key is not touched - expiration
- Type: System.DateTime
Expiration time - logOperation
- Type: System.Boolean
Log the operation
See Also