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

Method SAdd

set_commands.go:12–12  ·  view source on GitHub ↗
(ctx context.Context, key string, members ...interface{})

Source from the content-addressed store, hash-verified

10// Sets are unordered collections of unique strings.
11type SetCmdable interface {
12 SAdd(ctx context.Context, key string, members ...interface{}) *IntCmd
13 SCard(ctx context.Context, key string) *IntCmd
14 SDiff(ctx context.Context, keys ...string) *StringSliceCmd
15 SDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd

Callers 14

commands_test.goFile · 0.65
command_test.goFile · 0.65
ExampleClient_saddFunction · 0.65
ExampleClient_sismemberFunction · 0.65
ExampleClient_sinterFunction · 0.65
ExampleClient_scardFunction · 0.65
ExampleClient_smismemberFunction · 0.65
ExampleClient_sdiffFunction · 0.65
ExampleClient_multisetsFunction · 0.65
ExampleClient_sremFunction · 0.65

Calls

no outgoing calls

Tested by 11

ExampleClient_saddFunction · 0.52
ExampleClient_sismemberFunction · 0.52
ExampleClient_sinterFunction · 0.52
ExampleClient_scardFunction · 0.52
ExampleClient_smismemberFunction · 0.52
ExampleClient_sdiffFunction · 0.52
ExampleClient_multisetsFunction · 0.52
ExampleClient_sremFunction · 0.52
ExampleClient_sadd_cmdFunction · 0.52