<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # initAsynPools 用于初始化連接池,可以增加更多的連接池。 ```php /** * 這里可以進行額外的異步連接池,比如另一組redis/mysql連接 * @return array */ public function initAsynPools() { parent::initAsynPools(); $this->addAsynPool('redis2', new RedisAsynPool($this->config, 'test2')); } ``` 如上面代碼所展示我們增加了一個名為redis2的連接池。 RedisAsynPool的第一個參數傳遞我們的配置文件這里是$this->config,第二個參數傳遞的是配置中的目標名稱這里是test2。 ```php #redis.php文件 /** * 本地環境 */ $config['redis']['test']['ip'] = '192.168.21.10'; $config['redis']['test']['port'] = 6379; $config['redis']['test']['select'] = 1; $config['redis']['test']['password'] = '123456'; $config['redis']['asyn_max_count'] = 10; /** * 本地環境2 */ $config['redis']['test2']['ip'] = '192.168.21.10'; $config['redis']['test2']['port'] = 6379; $config['redis']['test2']['select'] = 2; $config['redis']['test2']['password'] = '123456'; $config['redis']['asyn_max_count'] = 10; ``` 這樣一來名為redis2的連接池所訪問的便是本地環境2所代表的redis連接了。 關于連接池還有2個方法 *addAsynPool [addAsynPool](/addasynpool.md) *getAsynPool [getAsynPool](/getasynpool.md)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看