Fix deprecated method in redis

This commit is contained in:
Julien Fastré 2024-09-11 14:23:23 +02:00
parent d0ee381627
commit 01c2848a83
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -65,7 +65,7 @@ class PasswordRecoverLocker
if (0 === $this->chillRedis->exists($key)) { if (0 === $this->chillRedis->exists($key)) {
$this->chillRedis->set($key, 1); $this->chillRedis->set($key, 1);
$this->chillRedis->setTimeout($key, $ttl); $this->chillRedis->expire($key, $ttl);
break; break;
} }