MCPcopy
hub / github.com/redis/go-redis / bitOp

Method bitOp

bitmap_commands.go:72–83  ·  view source on GitHub ↗
(ctx context.Context, op, destKey string, keys ...string)

Source from the content-addressed store, hash-verified

70}
71
72func (c cmdable) bitOp(ctx context.Context, op, destKey string, keys ...string) *IntCmd {
73 args := make([]interface{}, 3+len(keys))
74 args[0] = "bitop"
75 args[1] = op
76 args[2] = destKey
77 for i, key := range keys {
78 args[3+i] = key
79 }
80 cmd := NewIntCmd(ctx, args...)
81 _ = c(ctx, cmd)
82 return cmd
83}
84
85// BitOpAnd creates a new bitmap in which users are members of all given bitmaps
86func (c cmdable) BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd {

Callers 8

BitOpAndMethod · 0.95
BitOpOrMethod · 0.95
BitOpXorMethod · 0.95
BitOpNotMethod · 0.95
BitOpDiffMethod · 0.95
BitOpDiff1Method · 0.95
BitOpAndOrMethod · 0.95
BitOpOneMethod · 0.95

Calls 1

NewIntCmdFunction · 0.85

Tested by

no test coverage detected