MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / NewSet

Function NewSet

internal/data/set.go:39–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func NewSet() *Set {
40 return &Set{
41 M: map[string]map[uint32]*core.Record{},
42 }
43}
44
45// SAdd adds the specified members to the set stored at key.
46func (s *Set) SAdd(key string, values [][]byte, records []*core.Record) error {

Callers 12

GetWithDefaultMethod · 0.92
TestSet_SAddFunction · 0.85
TestSet_SRemFunction · 0.85
TestSet_SDiffFunction · 0.85
TestSet_SCardFunction · 0.85
TestSet_SInterFunction · 0.85
TestSet_SMembersFunction · 0.85
TestSet_SMoveFunction · 0.85
TestSet_SPopFunction · 0.85
TestSet_SIsMemberFunction · 0.85
TestSet_SAreMembersFunction · 0.85
TestSet_SUnionFunction · 0.85

Calls

no outgoing calls

Tested by 11

TestSet_SAddFunction · 0.68
TestSet_SRemFunction · 0.68
TestSet_SDiffFunction · 0.68
TestSet_SCardFunction · 0.68
TestSet_SInterFunction · 0.68
TestSet_SMembersFunction · 0.68
TestSet_SMoveFunction · 0.68
TestSet_SPopFunction · 0.68
TestSet_SIsMemberFunction · 0.68
TestSet_SAreMembersFunction · 0.68
TestSet_SUnionFunction · 0.68