zeanium-node
Version:
Zeanium for Node.js, simple http server and custome your business.
29 lines (25 loc) • 550 B
JavaScript
/**
* Created by yangyxu on 7/14/15.
*/
zn.define([
'./Cache'
],function (Cache) {
return zn.Class('CacheManager', {
static: true,
properties: {
all: []
},
methods: {
init: function (){
},
createCache: function (objs){
var _cache = new Cache(objs);
this.all.push(_cache);
return _cache;
},
size: function (){
return this.all.length;
}
}
});
});