Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var scriptProperties = PropertiesService.getScriptProperties();
- if(getCachedVariable(variableName) == null){
- // Results aren't in cache, get them and save them
- scriptProperties.setProperty(variableName,value);
- }
- return getCachedVariable(variableName);
- function getCachedVariable(variableName){
- return scriptProperties.getProperty(variableName);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement