MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / NewSetStructure

Function NewSetStructure

structure/set.go:26–32  ·  view source on GitHub ↗
(options config.Options)

Source from the content-addressed store, hash-verified

24type FSets map[string]struct{}
25
26func NewSetStructure(options config.Options) (*SetStructure, error) {
27 db, err := engine.NewDB(options)
28 if err != nil {
29 return nil, err
30 }
31 return &SetStructure{db: db}, nil
32}
33
34// SAdd adds a member to the set stored at key.
35//

Callers 3

NewSetServiceFunction · 0.92
initTestSetDbFunction · 0.85
TestNewSetStructureFunction · 0.85

Calls 1

NewDBFunction · 0.92

Tested by 2

initTestSetDbFunction · 0.68
TestNewSetStructureFunction · 0.68