/** * Set the desired lifetime in seconds for a record before it's considered * stale. * Once it's stale it will be eventually wiped out next time you try to * retrieve it or call refresh(). * IMPORTANT: if you want records to last forever, set this value to zero. * * * @param unknown_type $time * @return void */ public static function setLifetime($time) { if (is_integer($time) && $time >= 0) { self::$stale_age = $time; return true; } return false; }