Skip to content

Commit 7383382

Browse files
committed
Apply review comments.
1 parent c176d2b commit 7383382

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/commands/bitop.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ zero bytes up to the length of the longest string.
148148
1. Basic usage example using the `AND` operator:
149149

150150
{{% redis-cli %}}
151-
SET key1 "foobar"
152-
SET key2 "abcdef"
151+
BITFIELD key1 SET i8 #0 255
152+
BITFIELD key2 SET i8 #0 85
153153
BITOP AND dest key1 key2
154-
GET dest
154+
BITFIELD dest GET i8 #0
155155
{{% /redis-cli %}}
156156

157157
2. Suppose you want to expose people to a book-related ad. The target audience is people who love to read books and are interested in fantasy, adventure, or science fiction. Assume you have the following bitmaps:
@@ -164,7 +164,7 @@ GET dest
164164
To create a bitmap representing the target audience, use the following command:
165165

166166
```
167-
BITOP ANDOR newkey LRB B:F B:A B:SF
167+
BITOP ANDOR TA LRB B:F B:A B:SF
168168
```
169169

170170
## Pattern: real time metrics using bitmaps

0 commit comments

Comments
 (0)