/** * @param $key * @param $min * @param $max * @return int */ public function removeByScore($key, $min, $max = null) { if (is_null($max)) { $max = $min; } return $this->client->zRemRangeByScore($key, $min, $max); }