ICacheApiContainsKey Method
|
Determines whether a cache entry exists in the cache.
Namespace:
Casewhere.Runtime.DSL.Api
Assembly:
Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax bool ContainsKey(
string key
)
Parameters
- key
- Type: SystemString
The key.
Return Value
Type:
Booleantrue if the cache contains a cache entry whose key matches key; otherwise, false.
Examples var cacheApi = ctx.Use<ICacheApi>();
var hasKey = cacheApi.ContainsKey("cache_key");
See Also