Name
sn_mab_api.ConfigKeyCache
Description
No description available
Script
var ConfigKeyCache = Class.create();
ConfigKeyCache.prototype = {
initialize: function() {
this.cache = {};
this.configKeyDAO = new sn_mab_api.ConfigKeyDAO();
},
getTreeConfigByConfigKeys: function(configKeys) {
var cacheKey = this.createCacheKey(configKeys);
if (!this.cache[cacheKey])
this.cache[cacheKey] = this.configKeyDAO.getTreeConfigByConfigKeys(configKeys);
return this.cache[cacheKey];
},
createCacheKey: function(configKeys) {
return JSON.stringify(configKeys);
},
type: 'ConfigKeyCache'
};
Sys ID
2703ab76b71320108223e126de11a939