diff --git a/DataStorage/Cache/Connection/RedisCache.php b/DataStorage/Cache/Connection/RedisCache.php index fdf013882..d4792adda 100644 --- a/DataStorage/Cache/Connection/RedisCache.php +++ b/DataStorage/Cache/Connection/RedisCache.php @@ -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));