Store Module

myStoreModule := STD.System.Store([username],[ userPW],[espURL]);

myStoreModuleThe name of the Store module instance
usernameThe username of the user requesting access to the key value store; this is typically the same username used to login to ECL Watch; set to an empty string if authentication is not required; OPTIONAL, defaults to an empty string
userPWThe password of the user requesting access to the key value store; this is typically the same password used to login to ECL Watch; set to an empty string if authentication is not required; OPTIONAL, defaults to an empty string
espURLThe full URL for accessing the esp process running on the HPCC Systems cluster (this is typically the same URL as used to access ECL Watch); set to an empty string to use the URL of the current esp process as found via Std.File.GetEspURL(); OPTIONAL, defaults to an empty string
Return:A reference to the module, correctly initialized with the given access parameters

A Store module instance is defined in ECL with the necessary authentication credentials and ESP endpoint. Subsequent function calls use the module instance to access the key/value store.

Example:

IMPORT STD;

// Store module definition with credentials
myStore := STD.System.Store('myusername', 'mypassword', 'http://localhost:8010');

// Store module definition using default ESP URL
myDefaultStore := STD.System.Store();