public function getConfig() : array
    {
        $redis = $this->getDI()->getRedis();

        //get if from redis first
        if (!empty($redisConfig = $redis->hGetAll($this->getNotificationKey()))) {
            return $redisConfig;
        }

        $config = [];
        $userConfiguration = $this->getConfigs(['hydration' => \Phalcon\Mvc\Model\Resultset::HYDRATE_ARRAYS]);

        foreach ($userConfiguration as $value) {
            $config[$value['name']] = $value['value'];
        }

        return $config;
    }