Skip to content

channelCache.removeValue

Signature: channelCache.removeValue(key)

Returns: void

Remove the Channel Cache and its value that matches the key.

Parameters

Type Name Description Default
String key a unique string used to identify the cached value

Example

// Set a value in the channel cache
channelCache.setValue("lastName", "Smith");

// Remove the cached value
channelCache.removeValue("lastName");

// Attempting to read it now returns the default
var value = channelCache.getValue("lastName", "not found"); // not found