Heroku fix
This commit is contained in:
parent
282ad20a6b
commit
b5615831ef
|
@ -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",
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
<?php
|
||||
namespace Helpers\CacheEngines;
|
||||
|
||||
use \Redis;
|
||||
|
||||
class RedisCache {
|
||||
private \Redis $client;
|
||||
function __construct(string $host, int $port, ?string $password) {
|
||||
$this->client = new Redis();
|
||||
$this->client = new \Redis();
|
||||
$this->client->connect($host, $port);
|
||||
if ($password) {
|
||||
$this->client->auth($password);
|
||||
|
|
Loading…
Reference in a new issue