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

Method SMove

set_commands.go:222–226  ·  view source on GitHub ↗

Moves member from the set at source to the set at destination. This operation is atomic. In every given moment the element will appear to be a member of source or destination for other clients. For more information about the command please refer to [SMOVE]. [SMOVE]: (https://redis.io/docs/latest/c

(ctx context.Context, source, destination string, member interface{})

Source from the content-addressed store, hash-verified

220//
221// [SMOVE]: (https://redis.io/docs/latest/commands/smove/)
222func (c cmdable) SMove(ctx context.Context, source, destination string, member interface{}) *BoolCmd {
223 cmd := NewBoolCmd(ctx, "smove", source, destination, member)
224 _ = c(ctx, cmd)
225 return cmd
226}
227
228// Removes and returns one or more random members from the set value stored at key.
229// This version returns a single random member.

Callers

nothing calls this directly

Calls 1

NewBoolCmdFunction · 0.85

Tested by

no test coverage detected