Show Proyecto
This commit is contained in:
@ -15,8 +15,8 @@ class Redis
|
||||
}
|
||||
return $this->client->get($name);
|
||||
}
|
||||
public function set(string $name, mixed $value): void
|
||||
public function set(string $name, mixed $value, int $expirationTTL = 60 * 60 * 24): void
|
||||
{
|
||||
$this->client->set($name, $value, 'EX', 60 * 60 * 24);
|
||||
$this->client->set($name, $value, 'EX', $expirationTTL);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user