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

Method ZRemRangeByRank

sorted_set.go:198–206  ·  view source on GitHub ↗
(key string, start int, end int)

Source from the content-addressed store, hash-verified

196}
197
198func (z *SortedSet) ZRemRangeByRank(key string, start int, end int) error {
199 if sortedSet, ok := z.M[key]; ok {
200
201 _ = sortedSet.GetByRankRange(start, end, true)
202 return nil
203 }
204
205 return ErrSortedSetNotFound
206}
207
208func (z *SortedSet) getZRemRangeByRankNodes(key string, start int, end int) ([]*SkipListNode, error) {
209 if sortedSet, ok := z.M[key]; ok {

Callers

nothing calls this directly

Calls 1

GetByRankRangeMethod · 0.80

Tested by

no test coverage detected