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

Method SHasKey

internal/data/set.go:87–92  ·  view source on GitHub ↗

SHasKey returns whether it has the set at given key.

(key string)

Source from the content-addressed store, hash-verified

85
86// SHasKey returns whether it has the set at given key.
87func (s *Set) SHasKey(key string) bool {
88 if _, ok := s.M[key]; ok {
89 return true
90 }
91 return false
92}
93
94// SPop removes and returns one or more random elements from the set value store at key.
95func (s *Set) SPop(key string) *core.Record {

Callers 6

SPopMethod · 0.95
SCardMethod · 0.95
SDiffMethod · 0.95
SInterMethod · 0.95
SMoveMethod · 0.95
SUnionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected