這是think-cache組件不能用嗎?用的官方webman-think-cache
使用use support\Cache;得話,就會(huì)報(bào)這個(gè)錯(cuò),使用think/cache就沒(méi)問(wèn)題
命名空間弄錯(cuò)了吧,think-cache 應(yīng)該是 use think\facade\Cache; ,不是use support\Cache;
use think\facade\Cache;
use support\Cache;
恩恩,我的我的,搞定了