@@ 781-788 (lines=8) @@ | ||
778 | * @param boolean $withscores |
|
779 | * @return array |
|
780 | */ |
|
781 | public function zrange($key, $start, $stop, $withscores = false) |
|
782 | { |
|
783 | $this->init(); |
|
784 | if ($this->actualDriver() === self::DRIVER_PREDIS) { |
|
785 | return $this->driver->zrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
|
786 | } |
|
787 | return $this->driver->zrange($key, $start, $stop, $withscores); |
|
788 | } |
|
789 | ||
790 | /** |
|
791 | * Return a range of members in a sorted set, by index, with scores ordered from high to low |
|
@@ 798-805 (lines=8) @@ | ||
795 | * @param boolean $withscores |
|
796 | * @return array |
|
797 | */ |
|
798 | public function zrevrange($key, $start, $stop, $withscores = false) |
|
799 | { |
|
800 | $this->init(); |
|
801 | if ($this->actualDriver() === self::DRIVER_PREDIS) { |
|
802 | return $this->driver->zrevrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
|
803 | } |
|
804 | return $this->driver->zrevrange($key, $start, $stop, $withscores); |
|
805 | } |
|
806 | ||
807 | /** |
|
808 | * Returns null instead of false for Redis driver |