|
@@ 653-660 (lines=8) @@
|
| 650 |
|
* @param boolean $withscores |
| 651 |
|
* @return array |
| 652 |
|
*/ |
| 653 |
|
public function zrange($key, $start, $stop, $withscores = false) |
| 654 |
|
{ |
| 655 |
|
$this->init(); |
| 656 |
|
if ($this->actualDriver() === self::DRIVER_PREDIS) { |
| 657 |
|
return $this->driver->zrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
| 658 |
|
} |
| 659 |
|
return $this->driver->zrange($key, $start, $stop, $withscores); |
| 660 |
|
} |
| 661 |
|
|
| 662 |
|
/** |
| 663 |
|
* Return a range of members in a sorted set, by index, with scores ordered from high to low |
|
@@ 670-677 (lines=8) @@
|
| 667 |
|
* @param boolean $withscores |
| 668 |
|
* @return array |
| 669 |
|
*/ |
| 670 |
|
public function zrevrange($key, $start, $stop, $withscores = false) |
| 671 |
|
{ |
| 672 |
|
$this->init(); |
| 673 |
|
if ($this->actualDriver() === self::DRIVER_PREDIS) { |
| 674 |
|
return $this->driver->zrevrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
| 675 |
|
} |
| 676 |
|
return $this->driver->zrevrange($key, $start, $stop, $withscores); |
| 677 |
|
} |
| 678 |
|
|
| 679 |
|
/** |
| 680 |
|
* Returns null instead of false for Redis driver |