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

Method SIsMember

structure/set.go:121–128  ·  view source on GitHub ↗

SIsMember checks if a member exists in a set

(key, member string)

Source from the content-addressed store, hash-verified

119
120// SIsMember checks if a member exists in a set
121func (s *SetStructure) SIsMember(key, member string) (bool, error) {
122 fs, err := s.checkAndGetSet(key, false)
123 if err != nil {
124 return false, err
125 }
126
127 return fs.exists(member), nil
128}
129
130// SUnion gets the union of multiple sets
131func (s *SetStructure) SUnion(keys ...string) ([]string, error) {

Callers

nothing calls this directly

Calls 2

checkAndGetSetMethod · 0.95
existsMethod · 0.45

Tested by

no test coverage detected