All pastes #922460 Raw Edit

Anonymous

public javascript v1 · immutable
#922460 ·published 2008-02-28 20:43 UTC
rendered paste body
	function getValue(key) { return cache[key]; }	//returns true if the cached value is valid	function isCached(key)	{		var val = getValue(key);		//dirty = invalidated; null = nonexisting (but actively cached as such)		return val != undefined && (val == null || val.isDirty !== true);	}