fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
467 B

8 years ago
/**
* 缓冲池
* @type {{Buffer: {}}}
*/
7 years ago
8 years ago
(function () {
var Buffer = {};
7 years ago
var MODE = false;// 设置缓存模式为关闭
8 years ago
7 years ago
BI.BufferPool = {
8 years ago
put: function (name, cache) {
if (BI.isNotNull(Buffer[name])) {
throw new Error("key值:[" + name + "] 已存在!", Buffer);
8 years ago
}
Buffer[name] = cache;
},
get: function (name) {
return Buffer[name];
7 years ago
}
8 years ago
};
})();