|
@@ 697-704 (lines=8) @@
|
| 694 |
|
* @param boolean $withscores |
| 695 |
|
* @return array |
| 696 |
|
*/ |
| 697 |
|
public function zrange($key, $start, $stop, $withscores = false) |
| 698 |
|
{ |
| 699 |
|
$this->init(); |
| 700 |
|
if ($this->actualDriver() === self::DRIVER_PREDIS) { |
| 701 |
|
return $this->driver->zrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
| 702 |
|
} |
| 703 |
|
return $this->driver->zrange($key, $start, $stop, $withscores); |
| 704 |
|
} |
| 705 |
|
|
| 706 |
|
/** |
| 707 |
|
* Return a range of members in a sorted set, by index, with scores ordered from high to low |
|
@@ 714-721 (lines=8) @@
|
| 711 |
|
* @param boolean $withscores |
| 712 |
|
* @return array |
| 713 |
|
*/ |
| 714 |
|
public function zrevrange($key, $start, $stop, $withscores = false) |
| 715 |
|
{ |
| 716 |
|
$this->init(); |
| 717 |
|
if ($this->actualDriver() === self::DRIVER_PREDIS) { |
| 718 |
|
return $this->driver->zrevrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
| 719 |
|
} |
| 720 |
|
return $this->driver->zrevrange($key, $start, $stop, $withscores); |
| 721 |
|
} |
| 722 |
|
|
| 723 |
|
/** |
| 724 |
|
* Returns null instead of false for Redis driver |