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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # BITOP **BITOP operation destkey key [key ...]** 對一個或多個保存二進制位的字符串 `key` 進行位元操作,并將結果保存到 `destkey` 上。 `operation` 可以是 `AND` 、 `OR` 、 `NOT` 、 `XOR` 這四種操作中的任意一種: * `BITOP AND destkey key [key ...]` ,對一個或多個 `key` 求邏輯并,并將結果保存到 `destkey` 。 * `BITOP OR destkey key [key ...]` ,對一個或多個 `key` 求邏輯或,并將結果保存到 `destkey` 。 * `BITOP XOR destkey key [key ...]` ,對一個或多個 `key` 求邏輯異或,并將結果保存到 `destkey` 。 * `BITOP NOT destkey key` ,對給定 `key` 求邏輯非,并將結果保存到 `destkey` 。 除了 `NOT` 操作之外,其他操作都可以接受一個或多個 `key` 作為輸入。 **處理不同長度的字符串** 當 [BITOP](#bitop) 處理不同長度的字符串時,較短的那個字符串所缺少的部分會被看作 `0` 。 空的 `key` 也被看作是包含 `0` 的字符串序列。 **可用版本:** &gt;= 2.6.0 **時間復雜度:** O(N) **返回值:** 保存到 `destkey` 的字符串的長度,和輸入 `key` 中最長的字符串長度相等。 Note [BITOP](#bitop) 的復雜度為 O(N) ,當處理大型矩陣(matrix)或者進行大數據量的統計時,最好將任務指派到附屬節點(slave)進行,避免阻塞主節點。 ``` redis> SETBIT bits-1 0 1 # bits-1 = 1001 (integer) 0 redis> SETBIT bits-1 3 1 (integer) 0 redis> SETBIT bits-2 0 1 # bits-2 = 1011 (integer) 0 redis> SETBIT bits-2 1 1 (integer) 0 redis> SETBIT bits-2 3 1 (integer) 0 redis> BITOP AND and-result bits-1 bits-2 (integer) 1 redis> GETBIT and-result 0 # and-result = 1001 (integer) 1 redis> GETBIT and-result 1 (integer) 0 redis> GETBIT and-result 2 (integer) 0 redis> GETBIT and-result 3 (integer) 1 ```
                  <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>

                              哎呀哎呀视频在线观看