ICacheApiContainsKey Method

Determines whether a cache entry exists in the cache.

Definition

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
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