CACHEDELETE

The CACHEDELETE function deletes a cache variable from the cache.

This function returns a default value if specified, or an empty value if the cache variable has not been defined, or if it has been deleted prior to making this function invocation. Otherwise, it returns the associated value of the cache variable to the map in text format and deletes from the cache.

Syntax:
CACHEDELETE (single-text-expression [, single-text-expression])
Meaning:
CACHEDELETE (variable_name [, default_value])
Returns:

A single text item if found, otherwise none

.

Examples

  • flowlib->CACHEDELETE (“Greeting”)

    Deletes cache variable, Greeting, if found in the cache and returns value associated to it.

    Otherwise, returns empty.

  • flowlib->CACHEDELETE (“Greeting”, “Hi”)

    Deletes cache variable, Greeting, if found in the cache and returns value associated to it.

    Otherwise, returns default value, Hi, to the map.