@@ 731-738 (lines=8) @@ | ||
728 | * @param boolean $withscores |
|
729 | * @return array |
|
730 | */ |
|
731 | public function zrange($key, $start, $stop, $withscores = false) |
|
732 | { |
|
733 | $this->init(); |
|
734 | if ($this->actualDriver() === self::DRIVER_PREDIS) { |
|
735 | return $this->driver->zrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
|
736 | } |
|
737 | return $this->driver->zrange($key, $start, $stop, $withscores); |
|
738 | } |
|
739 | ||
740 | /** |
|
741 | * Return a range of members in a sorted set, by index, with scores ordered from high to low |
|
@@ 748-755 (lines=8) @@ | ||
745 | * @param boolean $withscores |
|
746 | * @return array |
|
747 | */ |
|
748 | public function zrevrange($key, $start, $stop, $withscores = false) |
|
749 | { |
|
750 | $this->init(); |
|
751 | if ($this->actualDriver() === self::DRIVER_PREDIS) { |
|
752 | return $this->driver->zrevrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
|
753 | } |
|
754 | return $this->driver->zrevrange($key, $start, $stop, $withscores); |
|
755 | } |
|
756 | ||
757 | /** |
|
758 | * Returns null instead of false for Redis driver |