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

Method ZDiff

sortedset_commands.go:710–722  ·  view source on GitHub ↗

ZDiff redis-server version >= 6.2.0.

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

Source from the content-addressed store, hash-verified

708
709// ZDiff redis-server version >= 6.2.0.
710func (c cmdable) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd {
711 args := make([]interface{}, 2+len(keys))
712 args[0] = "zdiff"
713 args[1] = len(keys)
714 for i, key := range keys {
715 args[i+2] = key
716 }
717
718 cmd := NewStringSliceCmd(ctx, args...)
719 cmd.SetFirstKeyPos(2)
720 _ = c(ctx, cmd)
721 return cmd
722}
723
724// ZDiffWithScores redis-server version >= 6.2.0.
725func (c cmdable) ZDiffWithScores(ctx context.Context, keys ...string) *ZSliceCmd {

Callers

nothing calls this directly

Calls 2

NewStringSliceCmdFunction · 0.85
SetFirstKeyPosMethod · 0.65

Tested by

no test coverage detected