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

Method SetBit

bitmap_commands.go:32–42  ·  view source on GitHub ↗
(ctx context.Context, key string, offset int64, value int)

Source from the content-addressed store, hash-verified

30}
31
32func (c cmdable) SetBit(ctx context.Context, key string, offset int64, value int) *IntCmd {
33 cmd := NewIntCmd(
34 ctx,
35 "setbit",
36 key,
37 offset,
38 value,
39 )
40 _ = c(ctx, cmd)
41 return cmd
42}
43
44type BitCount struct {
45 Start, End int64

Callers

nothing calls this directly

Calls 1

NewIntCmdFunction · 0.85

Tested by

no test coverage detected