try to fix expire bug

This commit is contained in:
Dennis Eichhorn 2019-12-08 11:31:52 +01:00
parent 25a24c5916
commit 89dd33bd99

View File

@ -106,7 +106,7 @@ class RedisCache extends ConnectionAbstract
}
if ($expire > 0) {
$this->con->set($key, $this->build($value), $expire);
$this->con->setEx($key, $expire, $this->build($value));
}
$this->con->set($key, $this->build($value));