Click or drag to resize

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.5.0
Syntax
C#
bool ContainsKey(
	string key
)

Parameters

key  String
The key.

Return Value

Boolean
true if the cache contains a cache entry whose key matches key; otherwise, false.
Example
C#
var cacheApi = ctx.Use<ICacheApi>();
var hasKey = cacheApi.ContainsKey("cache_key");
See Also