var DataCache = function(){
if(!(this dataCache 인스턴스)){
return new DataCache();
}
this.id = 0;
this.caches = {};
};
DataCache.prototype = {
add : function(val){
val = val || 널;
key = "dc_" this.id;
this.caches[키] = val;
리턴 키;
},
remove : function(key){
delete this.caches[key];
},
get : function(key){
return this.caches[key];
},
set : function(key,val){
this.caches[key] = val;
}
};