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

Method ZInter

sortedset_commands.go:241–249  ·  view source on GitHub ↗
(ctx context.Context, store *ZStore)

Source from the content-addressed store, hash-verified

239}
240
241func (c cmdable) ZInter(ctx context.Context, store *ZStore) *StringSliceCmd {
242 args := make([]interface{}, 0, 2+store.len())
243 args = append(args, "zinter", len(store.Keys))
244 args = store.appendArgs(args)
245 cmd := NewStringSliceCmd(ctx, args...)
246 cmd.SetFirstKeyPos(2)
247 _ = c(ctx, cmd)
248 return cmd
249}
250
251func (c cmdable) ZInterWithScores(ctx context.Context, store *ZStore) *ZSliceCmd {
252 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