#NEWLINE# def zremrangebyrank( self , key , min , max ) : #NEWLINE# #INDENT# '\n        Remove all elements in the sorted set ``key`` with ranks between\n        ``min`` and ``max``. Values are 0-based, ordered from smallest score\n        to largest. Values can be negative indicating the highest scores.\n        Returns the number of elements removed\n        ' #NEWLINE# offset = self . get_node_offset ( min ) #NEWLINE# return self . servers [ offset ] . zremrangebyrank ( key , min , max )