cache.js

来自「通过对bufflao改造」· JavaScript 代码 · 共 21 行

JS
21
字号

var Buffalo.Cache = {
	
}

Buffalo.CacheElement = Class.create();

Buffalo.CacheElement.prototype = {

	initialize:function(name) {
		this.name = name;
		this.createTime = new Date();
		this.lastAccess = new Date();
	}
	
	idleTime : function() {
		return (new Date()) - this.lastAccess;
	}
	
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?