Files
oficial/app/src/Service/Redis.php

19 lines
345 B
PHP
Raw Normal View History

2023-10-19 20:46:52 -03:00
<?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);
}
}