Heroku fix

This commit is contained in:
Pablo Ferreiro 2022-01-14 19:31:08 +01:00
parent 282ad20a6b
commit b5615831ef
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
2 changed files with 2 additions and 4 deletions

View file

@ -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",

View file

@ -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);