Heroku fix
This commit is contained in:
parent
282ad20a6b
commit
b5615831ef
|
@ -10,7 +10,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"ext-redis": "*",
|
"ext-redis": "^5.3.4",
|
||||||
"ssovit/tiktok-api": "dev-rework",
|
"ssovit/tiktok-api": "dev-rework",
|
||||||
"steampixel/simple-php-router": "^0.7.0",
|
"steampixel/simple-php-router": "^0.7.0",
|
||||||
"latte/latte": "^2.10",
|
"latte/latte": "^2.10",
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Helpers\CacheEngines;
|
namespace Helpers\CacheEngines;
|
||||||
|
|
||||||
use \Redis;
|
|
||||||
|
|
||||||
class RedisCache {
|
class RedisCache {
|
||||||
private \Redis $client;
|
private \Redis $client;
|
||||||
function __construct(string $host, int $port, ?string $password) {
|
function __construct(string $host, int $port, ?string $password) {
|
||||||
$this->client = new Redis();
|
$this->client = new \Redis();
|
||||||
$this->client->connect($host, $port);
|
$this->client->connect($host, $port);
|
||||||
if ($password) {
|
if ($password) {
|
||||||
$this->client->auth($password);
|
$this->client->auth($password);
|
||||||
|
|
Loading…
Reference in a new issue