MCPcopy
hub / github.com/celery/celery / zrange

Method zrange

t/unit/backends/test_redis.py:150–154  ·  view source on GitHub ↗
(self, key, start, stop)

Source from the content-addressed store, hash-verified

148 fake_sorted_set.sort()
149
150 def zrange(self, key, start, stop):
151 # `stop` is inclusive in Redis so we use `stop + 1` unless that would
152 # cause us to move from negative (right-most) indices to positive
153 stop = stop + 1 if stop != -1 else None
154 return [e[1] for e in self._get_sorted_set(key)[start:stop]]
155
156 def zrangebyscore(self, key, min_, max_):
157 return [

Callers 2

test_chord_on_errorMethod · 0.80
on_chord_part_returnMethod · 0.80

Calls 1

_get_sorted_setMethod · 0.95

Tested by

no test coverage detected