BITOP
Stores the bitwise OR of source strings in a destination key.
Bitmaps · Example verified
Syntax covered here
BITOP OR destination source1 source2The case combines two equal-length strings and verifies the stored result with GET.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> SET left A
"OK"
# connection: default
> SET right B
"OK"
# connection: default
> BITOP OR union left right
1
# connection: default
> GET union
"C"