Cleanup
This commit is contained in:
@ -9,7 +9,12 @@ class Redis
|
||||
{
|
||||
public function __construct(protected ClientInterface $client) {}
|
||||
|
||||
public function get(string $name): mixed
|
||||
/**
|
||||
* @param string $name
|
||||
* @return string|null
|
||||
* @throws EmptyRedis
|
||||
*/
|
||||
public function get(string $name): ?string
|
||||
{
|
||||
try {
|
||||
if (!$this->client->exists($name)) {
|
||||
|
Reference in New Issue
Block a user