Ejemplo n.º 1
0
 /**
  * @param $key
  * @param $min
  * @param $max
  * @param array $options Two options are available:
  *                      - withscores => TRUE,
  *                      - and limit => array($offset, $count)
  * @return array
  */
 public function getByScore($key, $min, $max = null, array $options = [])
 {
     if (is_null($max)) {
         $max = $min;
     }
     return $this->client->zRangeByScore($key, $min, $max, $options);
 }