Global

Type Definitions

Choice

Required return value from a switchFunction
Type:
  • Object
Properties:
Name Type Description
choice.cacheId Number id of target cache
choice.id Number id of the message itself
choice.data Object message that will be inserted into cache
Source:

PopulateFunction(id, cache, next)

Parameters:
Name Type Description
id String id of the cache. Note that this will always be a string even if the original ID was a Number
cache Cache the server cache
next function function that MUST be called to indicate completion of cache population
Source:

SwitchFunction(message) → {Choice}

Parameters:
Name Type Description
message Object data/message payload
Source:
Returns:
choice - determined choice
Type
Choice