Cache,就是缓存的意思,
如果要用的话可以 :先use一下
use think\Cache;
然后就可以调用get().set().方法了
Cache::set(‘name’, ‘wbj’);
Cache::set(‘name’, ‘wbj’,3600); 第三个参数默认为0,表示无限有有效期,(有效期)
return Cache::get(‘name’);
Cache,就是缓存的意思,
如果要用的话可以 :先use一下
use think\Cache;
然后就可以调用get().set().方法了
Cache::set(‘name’, ‘wbj’);
Cache::set(‘name’, ‘wbj’,3600); 第三个参数默认为0,表示无限有有效期,(有效期)
return Cache::get(‘name’);