Step 46 – Making LMSSetValue() and LMSGetValue() Talk to the Cache

Unless I’m missing something obvious, reading from and writing to the cache is pretty simple – certainly a lot simpler than the AJAX calls that I was having to make! Here’s how I’m going to handle it.

function LMSGetValue(varname) {
  return cache[varname];
}

function LMSSetValue(varname,varvalue) {
  cache[varname] = varvalue;
  return "true";
}

Much less stressful than I’d anticipated. Next time, something a little more complicated – handling LMSCommit().

This entry was posted in Run Time Environment. Bookmark the permalink.