CACHEREAD

The CACHEREAD function reads the value associated to 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.

Syntax:
CACHEREAD (single-text-expression [, single-text-expression])
Meaning:
CACHEREAD (variable_name [, default_value])
Returns:
A single text item.

Examples

  • flowlib->CACHEREAD (“Greeting”)

    Returns the current value associated to cache variable, Greeting, if exists in the cache.

    Otherwise, returns empty.

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

    Returns the current value associated to cache variable, Greeting, if exists in the cache.

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