(key string, start int, end int)
| 196 | } |
| 197 | |
| 198 | func (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 | |
| 208 | func (z *SortedSet) getZRemRangeByRankNodes(key string, start int, end int) ([]*SkipListNode, error) { |
| 209 | if sortedSet, ok := z.M[key]; ok { |
nothing calls this directly
no test coverage detected