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

Parameters

key
Type: SystemString
The key.

Return Value

Type: Boolean
true 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