MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / SISMEMBER

Method SISMEMBER

sets.go:152–163  ·  view source on GitHub ↗
(key string, member string)

Source from the content-addressed store, hash-verified

150}
151
152func (c Client) SISMEMBER(key string, member string) (ok bool, err error) {
153 resp, err := c.ddbClient.GetItemRequest(&dynamodb.GetItemInput{
154 ConsistentRead: aws.Bool(c.consistentReads),
155 Key: setMember{pk: key, sk: member}.keyAV(c),
156 TableName: aws.String(c.table),
157 }).Send(context.TODO())
158 if err != nil || len(resp.Item) == 0 {
159 return
160 }
161
162 return true, nil
163}
164
165func (c Client) SMEMBERS(key string) (members []string, err error) {
166 hasMoreResults := true

Callers 1

TestBasicSetsFunction · 0.80

Calls 2

keyAVMethod · 0.45
StringMethod · 0.45

Tested by 1

TestBasicSetsFunction · 0.64