<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 功能強大 支持多語言、二開方便! 廣告
                ## multi, exec, discard. ##### Description Enter and exit transactional mode. 進入、退出事務處理模式。 ##### Parameters (optional) `<span class="calibre12">Redis::MULTI</span>` or `<span class="calibre12">Redis::PIPELINE</span>`. Defaults to `<span class="calibre12">Redis::MULTI</span>`. A `<span class="calibre12">Redis::MULTI</span>` block of commands runs as a single transaction; a `<span class="calibre12">Redis::PIPELINE</span>` block is simply transmitted faster to the server, but without any guarantee of atomicity. `<span class="calibre12">discard</span>`cancels a transaction. multi函數的參數選項為Redis::MULTI或者是Redis::PIPELINE.默認的是參數是Redis::MULTI。 Redis::MULTI將多個操作當做一個事務來處理。Redis::PIPELINE將作為一個簡單快速的處理通道給服務器進行處理,但是不保證處理數據的原子性。 discard()函數取消一個事物處理模式。 ##### Return value `<span class="calibre12">multi()</span>` returns the Redis instance and enters multi-mode. Once in multi-mode, all subsequent method calls return the same object until `<span class="calibre12">exec()</span>` is called. multi()返回一個Redis實例,并且這個實例進入到了事務處理模式(批量處理)。當進入到事務處理模式,所有的方法調用都將返回相同的Redis實例,一直到exec()被調用執行事務處理。 ##### Example ``` <pre class="calibre9">$ret = $redis->multi() ->set('key1', 'val1') ->get('key1') ->set('key2', 'val2') ->get('key2') ->exec(); /* $ret == array( 0 => TRUE, 1 => 'val1', 2 => TRUE, 3 => 'val2'); */ ```
                  <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>

                              哎呀哎呀视频在线观看