|
@@ 788-795 (lines=8) @@
|
| 785 |
|
* @param boolean $withscores |
| 786 |
|
* @return array |
| 787 |
|
*/ |
| 788 |
|
public function zrange($key, $start, $stop, $withscores = false) |
| 789 |
|
{ |
| 790 |
|
$this->init(); |
| 791 |
|
if ($this->actualDriver() === self::DRIVER_PREDIS) { |
| 792 |
|
return $this->driver->zrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
| 793 |
|
} |
| 794 |
|
return $this->driver->zrange($key, $start, $stop, $withscores); |
| 795 |
|
} |
| 796 |
|
|
| 797 |
|
/** |
| 798 |
|
* Incrementally iterate Sorted set elements |
|
@@ 827-834 (lines=8) @@
|
| 824 |
|
* @param boolean $withscores |
| 825 |
|
* @return array |
| 826 |
|
*/ |
| 827 |
|
public function zrevrange($key, $start, $stop, $withscores = false) |
| 828 |
|
{ |
| 829 |
|
$this->init(); |
| 830 |
|
if ($this->actualDriver() === self::DRIVER_PREDIS) { |
| 831 |
|
return $this->driver->zrevrange($key, $start, $stop, ['WITHSCORES' => $withscores]); |
| 832 |
|
} |
| 833 |
|
return $this->driver->zrevrange($key, $start, $stop, $withscores); |
| 834 |
|
} |
| 835 |
|
|
| 836 |
|
/** |
| 837 |
|
* Returns the rank of member in the sorted set stored at key, with the scores ordered from low to high. The rank (or index) is 0-based, which means that the member with the lowest score has rank 0 |