摘要: var Cache = function(max, buffer) { this.$cache = []; this.$max = max | 0 || 20; this.$buffer = buffer | 0 || 5;};Cache.prototype.set = function(key, cacheItem) { var cache = this.$cache; key = 'cache_' + key; var temp = cache[key]; if (!cache.hasOwnProperty(key)) { if (c... 阅读全文
posted @ 2014-03-24 14:46 黑暗骑士之“闪” 阅读(238) 评论(0) 推荐(0) 编辑