|
@@ -5,6 +5,8 @@
|
|
|
use app\admin\model\Admin;
|
|
|
use app\common\model\User;
|
|
|
use app\common\service\SubService;
|
|
|
+use Cache\Adapter\Redis\RedisCachePool;
|
|
|
+use Cache\Bridge\SimpleCache\SimpleCacheBridge;
|
|
|
use EasyWeChat\Factory;
|
|
|
use Symfony\Component\VarExporter\VarExporter;
|
|
|
use think\Cache;
|
|
@@ -618,8 +620,8 @@ function getSub(){
|
|
|
function cache_simple(){
|
|
|
$instance=null;
|
|
|
if(is_null($instance)){
|
|
|
- $pool = new \Cache\Adapter\Redis\RedisCachePool(Cache::store('redis')->handler());
|
|
|
- $instance = new \Cache\Bridge\SimpleCache\SimpleCacheBridge($pool);
|
|
|
+ $pool = new RedisCachePool(Cache::store('redis')->handler());
|
|
|
+ $instance = new SimpleCacheBridge($pool);
|
|
|
}
|
|
|
return $instance;
|
|
|
}
|