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

Method SINTERSTORE

sets.go:143–150  ·  view source on GitHub ↗
(destinationKey string, sourceKey string, otherKeys ...string)

Source from the content-addressed store, hash-verified

141}
142
143func (c Client) SINTERSTORE(destinationKey string, sourceKey string, otherKeys ...string) (count int64, err error) {
144 members, err := c.SINTER(sourceKey, otherKeys...)
145 if err == nil {
146 _, err = c.SADD(destinationKey, members...)
147 }
148
149 return int64(len(members)), err
150}
151
152func (c Client) SISMEMBER(key string, member string) (ok bool, err error) {
153 resp, err := c.ddbClient.GetItemRequest(&dynamodb.GetItemInput{

Callers 1

TestSetOperationsFunction · 0.80

Calls 2

SINTERMethod · 0.95
SADDMethod · 0.95

Tested by 1

TestSetOperationsFunction · 0.64