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

Method ZUnion

sortedset_commands.go:664–672  ·  view source on GitHub ↗
(ctx context.Context, store ZStore)

Source from the content-addressed store, hash-verified

662}
663
664func (c cmdable) ZUnion(ctx context.Context, store ZStore) *StringSliceCmd {
665 args := make([]interface{}, 0, 2+store.len())
666 args = append(args, "zunion", len(store.Keys))
667 args = store.appendArgs(args)
668 cmd := NewStringSliceCmd(ctx, args...)
669 cmd.SetFirstKeyPos(2)
670 _ = c(ctx, cmd)
671 return cmd
672}
673
674func (c cmdable) ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd {
675 args := make([]interface{}, 0, 3+store.len())

Callers

nothing calls this directly

Calls 4

NewStringSliceCmdFunction · 0.85
SetFirstKeyPosMethod · 0.65
lenMethod · 0.45
appendArgsMethod · 0.45

Tested by

no test coverage detected