diff --git a/composer.json b/composer.json index f925cbc..f198ad6 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "ext-redis": "*", + "ext-redis": "^5.3.4", "ssovit/tiktok-api": "dev-rework", "steampixel/simple-php-router": "^0.7.0", "latte/latte": "^2.10", diff --git a/helpers/CacheEngines/RedisCache.php b/helpers/CacheEngines/RedisCache.php index 58d5bb9..eaaf97b 100644 --- a/helpers/CacheEngines/RedisCache.php +++ b/helpers/CacheEngines/RedisCache.php @@ -1,12 +1,10 @@ client = new Redis(); + $this->client = new \Redis(); $this->client->connect($host, $port); if ($password) { $this->client->auth($password);