<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # CatCache SD自帶的可落地的高速緩存 ## 配置 在CatCache.php配置文件中啟用CatCache ``` /** * 是否啟動CatCache */ $config['catCache']['enable'] = true; //自動存盤時間 $config['catCache']['auto_save_time'] = 1000; //落地文件夾 $config['catCache']['save_dir'] = BIN_DIR . '/cache/'; //RPC代理 $config['catCache']['rpcProxyClass'] = CatCacheRpcProxy::class; //分割符 $config['catCache']['delimiter'] = "."; ``` * auto_save_time 自動存盤時間,單位是秒 * save_dir 存盤路徑 * rpcProxyClass RPC代理,高級用法 * delimiter 路徑分隔符 CatCache擁有2種存盤模式,一種是全盤落地通過auto_save_time參數控制,一旦到達時間就會執行存盤操作。另外是日志模式,記錄用戶的增加刪除操作,2種模式會盡量保證數據不會丟失。 delimiter是分隔符 ``` CatCacheRpcProxy::getRpc()['test.a'] ``` 這樣其實是獲取test數組中a的值,通過更改delimiter可以變化分隔符,不影響數據。 auto_save_time要好好設計,不能太久,會導致log日志過多,太短影響效率。 ## 使用 ``` public function http_testSC1() { $result = yield CatCacheRpcProxy::getRpc()->offsetExists('test.bc'); $this->http_output->end($result, false); } public function http_testSC2() { unset(CatCacheRpcProxy::getRpc()['test.a']); $this->http_output->end(1, false); } public function http_testSC3() { CatCacheRpcProxy::getRpc()['test.a'] = ['a' => 'a', 'b' => [1, 2, 3]]; $this->http_output->end(1, false); } public function http_testSC4() { $result = yield CatCacheRpcProxy::getRpc()['test']; $this->http_output->end($result, false); } public function http_testSC5() { $result = yield CatCacheRpcProxy::getRpc()->getAll(); $this->http_output->end($result, false); } ```
                  <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>

                              哎呀哎呀视频在线观看