SAdd adds the specified members to the set stored int the bucket at given bucket,key and items.
(bucket string, key []byte, items ...[]byte)
| 86 | |
| 87 | // SAdd adds the specified members to the set stored int the bucket at given bucket,key and items. |
| 88 | func (tx *Tx) SAdd(bucket string, key []byte, items ...[]byte) error { |
| 89 | if err := tx.checkTxIsClosed(); err != nil { |
| 90 | return err |
| 91 | } |
| 92 | return tx.sPut(bucket, key, DataSetFlag, items...) |
| 93 | } |
| 94 | |
| 95 | // SRem removes the specified members from the set stored int the bucket at given bucket,key and items. |
| 96 | func (tx *Tx) SRem(bucket string, key []byte, items ...[]byte) error { |