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

Method BitOpOne

bitmap_commands.go:125–127  ·  view source on GitHub ↗

BitOpOne creates a new bitmap in which users are members of exactly one of the given bitmaps Introduced with Redis 8.2

(ctx context.Context, destKey string, keys ...string)

Source from the content-addressed store, hash-verified

123// BitOpOne creates a new bitmap in which users are members of exactly one of the given bitmaps
124// Introduced with Redis 8.2
125func (c cmdable) BitOpOne(ctx context.Context, destKey string, keys ...string) *IntCmd {
126 return c.bitOp(ctx, "one", destKey, keys...)
127}
128
129// BitPos is an API before Redis version 7.0, cmd: bitpos key bit start end
130// if you need the `byte | bit` parameter, please use `BitPosSpan`.

Callers

nothing calls this directly

Calls 1

bitOpMethod · 0.95

Tested by

no test coverage detected