浏览代码

删除common中的GetRedis 方法

程旭源 4 年之前
父节点
当前提交
4f385dca37
共有 1 个文件被更改,包括 0 次插入23 次删除
  1. 0 23
      application/common/behavior/Common.php

+ 0 - 23
application/common/behavior/Common.php

@@ -73,27 +73,4 @@ class Common
         ]);
         $this->moduleInit($request);
     }
-
-    static public function getRedis($params)
-    {
-        $options = [
-            'host'       => '127.0.0.1',
-            'port'       => 6379,
-            'password'   => 'Z159357p',
-            'select'     => 1,
-            'timeout'    => 0,
-            'expire'     => 0,
-            'persistent' => true,
-            'prefix'     => '',
-        ];
-
-        if (!extension_loaded('redis')) {
-            throw new \BadFunctionCallException('not support: redis');
-        }
-
-        if (!empty($params)) {
-            $options = array_merge($options, $params);
-        }
-
-    }
 }