(destinationKey string, sourceKey string, otherKeys ...string)
| 141 | } |
| 142 | |
| 143 | func (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 | |
| 152 | func (c Client) SISMEMBER(key string, member string) (ok bool, err error) { |
| 153 | resp, err := c.ddbClient.GetItemRequest(&dynamodb.GetItemInput{ |