/** * @param int $priority * @return array */ private function priorityEntries($priority) { return $this->client->zRangeByScore($this->formatKey(self::PRIORITY), 0, (int) $priority) ?: []; }