Beispiel #1
0
 /**
  * @param string       $key
  * @param string       $start
  * @param string       $end
  * @param int|null     $count
  * @param int|null     $offset
  * @param boolean|null $returnScore
  * @return array
  */
 public function zRangeByScore($key, $start, $end, $count = null, $offset = null, $returnScore = null)
 {
     $options = array();
     if (null !== $count || null !== $offset) {
         $count = null !== $count ? (int) $count : -1;
         $offset = null !== $offset ? (int) $offset : 0;
         $options['limit'] = array($offset, $count);
     }
     if ($returnScore) {
         $options['withscores'] = true;
     }
     return $this->_redis->zRangeByScore($key, $start, $end, $options);
 }