1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #2478 from chingwl/chingwl-patch-1

Update redis-data-structures-02.md
This commit is contained in:
Guide 2024-09-08 13:15:59 +08:00 committed by GitHub
commit 94bf6cb25e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ Bitmap 存储的是连续的二进制数字0 和 1通过 Bitmap, 只需
| ------------------------------------- | ---------------------------------------------------------------- | | ------------------------------------- | ---------------------------------------------------------------- |
| SETBIT key offset value | 设置指定 offset 位置的值 | | SETBIT key offset value | 设置指定 offset 位置的值 |
| GETBIT key offset | 获取指定 offset 位置的值 | | GETBIT key offset | 获取指定 offset 位置的值 |
| BITCOUNT key start end | 获取 start 和 end 之值为 1 的元素个数 | | BITCOUNT key start end | 获取 start 和 end 之值为 1 的元素个数 |
| BITOP operation destkey key1 key2 ... | 对一个或多个 Bitmap 进行运算,可用运算符有 AND, OR, XOR 以及 NOT | | BITOP operation destkey key1 key2 ... | 对一个或多个 Bitmap 进行运算,可用运算符有 AND, OR, XOR 以及 NOT |
**Bitmap 基本操作演示** **Bitmap 基本操作演示**