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

Method SIsMember

set_commands.go:168–172  ·  view source on GitHub ↗

Returns if member is a member of the set stored at key. Returns true if the element is a member of the set, false if it is not a member or if key does not exist. For more information about the command please refer to [SISMEMBER]. [SISMEMBER]: (https://redis.io/docs/latest/commands/sismember/)

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

Source from the content-addressed store, hash-verified

166//
167// [SISMEMBER]: (https://redis.io/docs/latest/commands/sismember/)
168func (c cmdable) SIsMember(ctx context.Context, key string, member interface{}) *BoolCmd {
169 cmd := NewBoolCmd(ctx, "sismember", key, member)
170 _ = c(ctx, cmd)
171 return cmd
172}
173
174// Returns whether each member is a member of the set stored at key.
175// For each member, returns true if the element is a member of the set, false if it is not

Callers

nothing calls this directly

Calls 1

NewBoolCmdFunction · 0.85

Tested by

no test coverage detected