public static function saveAppRoutes($app = null)
    {
        $app = empty($app) ? Yii::$app : $app;
        $appKey = UniApplication::appKey($app);

        if ($app->cache instanceof Cache && isset(static::$_routes[$appKey])) {
            $app->cache->set($appKey, static::$_routes[$appKey], static::$defaultCacheDuration);
        }
    }