Redis service

This commit is contained in:
2023-10-19 20:46:52 -03:00
parent 742c0327c2
commit dc217d876a
10 changed files with 228 additions and 97 deletions

18
app/src/Service/Redis.php Normal file
View File

@ -0,0 +1,18 @@
<?php
namespace Incoviba\Service;
use Predis\Client;
class Redis
{
public function __construct(protected Client $client) {}
public function get(string $name): mixed
{
return $this->client->get($name);
}
public function set(string $name, mixed $value): void
{
$this->client->set($name, $value);
}
}