(key string, score SCORE, value []byte, record *core.Record)
| 52 | } |
| 53 | |
| 54 | func (z *SortedSet) ZAdd(key string, score SCORE, value []byte, record *core.Record) error { |
| 55 | sortedSet, ok := z.M[key] |
| 56 | if !ok { |
| 57 | z.M[key] = newSkipList(z.db) |
| 58 | sortedSet = z.M[key] |
| 59 | } |
| 60 | |
| 61 | return sortedSet.Put(score, value, record) |
| 62 | } |
| 63 | |
| 64 | func (z *SortedSet) ZMembers(key string) (map[*core.Record]SCORE, error) { |
| 65 | sortedSet, ok := z.M[key] |
nothing calls this directly
no test coverage detected