将`cache`改为`cached`，强化对undefined类型判断