ICacheApiContainsKey Method
|
Determines whether a cache entry exists in the cache.
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntaxbool ContainsKey(
string key
)
Parameters
- key String
- The key.
Return Value
Booleantrue if the cache contains a cache entry whose key matches key; otherwise, false.
Examplevar cacheApi = ctx.Use<ICacheApi>();
var hasKey = cacheApi.ContainsKey("cache_key");
See Also