@@ 723-730 (lines=8) @@ | ||
720 | * @param boolean $withscores |
|
721 | * @return array |
|
722 | */ |
|
723 | public function zrange($key, $start, $stop, $withscores = false) |
|
724 | { |
|
725 | $this->init(); |
|
726 | if ($this->actualDriver() === self::DRIVER_PREDIS) { |
|
727 | return $this->driver->zrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
|
728 | } |
|
729 | return $this->driver->zrange($key, $start, $stop, $withscores); |
|
730 | } |
|
731 | ||
732 | /** |
|
733 | * Return a range of members in a sorted set, by index, with scores ordered from high to low |
|
@@ 740-747 (lines=8) @@ | ||
737 | * @param boolean $withscores |
|
738 | * @return array |
|
739 | */ |
|
740 | public function zrevrange($key, $start, $stop, $withscores = false) |
|
741 | { |
|
742 | $this->init(); |
|
743 | if ($this->actualDriver() === self::DRIVER_PREDIS) { |
|
744 | return $this->driver->zrevrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
|
745 | } |
|
746 | return $this->driver->zrevrange($key, $start, $stop, $withscores); |
|
747 | } |
|
748 | ||
749 | /** |
|
750 | * Returns null instead of false for Redis driver |