Access the storage functions, which allow you to specify a cache that stores results from online requests.
Cached result sets must be stored as strings (before deserialization to an xmlWorkflowMessage structure).
Calls to these methods do not trigger events.
// The following script creates a 2 local storage instances with their own domain var store1 = new SUPStorage("mydomain"); var store2 = new SUPStorage("myotherdomain");
// The following script displays the current number of elements in the storage var store = new SUPStorage(); alert(store.length());
// The following script displays the value at the provided index in the storage var store = new SUPStorage(); alert(store.key(2));
// The following script displays the value for the provided key var store = new SUPStorage(); alert(store.getItem("mykey"));
// The following script sets a key/value pair var store = new SUPStorage(); store.setItem("mykey", "myvalue");
// The following script removes a key/value pair var store = new SUPStorage(); store.removeItem("mykey");
// The following clears the storage var store = new SUPStorage(); store.clear();