(self, start, stop, callback=None, withscores=True, **options)
return backend.execute(res, callback)
Return a range with scores between start and end.
Return a range with scores between start and end.
Return a range with scores between start and end .
def range(self, start, stop, callback=None, withscores=True, **options):
        '''Return a range with scores between start and end.'''
        s1 = self.pickler.dumps(start)
        s2 = self.pickler.dumps(stop)
        backend = self.read_backend
        res = backend.structure(self).range(s1, s2, withscores=withscores,
                                            **options)
        if not callback:
            callback = self.load_data if withscores else self.load_values
        return backend.execute(res, callback)
def range ( self , start , stop , callback = None , withscores = True , * * options ) : s1 = self . pickler . dumps ( start ) s2 = self . pickler . dumps ( stop ) backend = self . read_backend res = backend . structure ( self ) . range ( s1 , s2 , withscores = withscores , * * options ) if not callback : callback = self . load_data if withscores else self . load_values return backend . execute ( res , callback )