public function getStatsByType(string $date, string $type)  :? array
    {
        if ($this->isValidDate($date)) {
            $results = $this->getClient()->getRedis()->hgetall($date . '_' . $type);
            \ksort($results);
            return $results;
        }

        return null;
    }