(ctx context.Context, op, destKey string, keys ...string)
| 70 | } |
| 71 | |
| 72 | func (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 |
| 86 | func (c cmdable) BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd { |
no test coverage detected