MCPcopy Create free account
hub / github.com/distributedio/titan / updateMeta

Method updateMeta

db/set.go:128–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128func (set *Set) updateMeta() error {
129 meta := encodeSetMeta(set.meta)
130 err := set.txn.t.Set(MetaKey(set.txn.db, set.key), meta)
131 if err != nil {
132 return err
133 }
134 set.meta.UpdatedAt = Now()
135 if !set.exists {
136 set.exists = true
137 }
138 return nil
139}
140
141// SAdd adds the specified members to the set stored at key
142func (set *Set) SAdd(members ...[]byte) (int64, error) {

Callers 4

SAddMethod · 0.95
SPopMethod · 0.95
SRemMethod · 0.95
SMoveMethod · 0.95

Calls 4

encodeSetMetaFunction · 0.85
MetaKeyFunction · 0.85
NowFunction · 0.85
SetMethod · 0.65

Tested by

no test coverage detected