Show Proyecto

This commit is contained in:
2023-10-20 19:03:29 -03:00
parent 4734417fe2
commit b4742a501e
16 changed files with 644 additions and 48 deletions

View File

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