From 89dd33bd99e25949031b0bab58dbfc82e8560e97 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 8 Dec 2019 11:31:52 +0100 Subject: [PATCH] try to fix expire bug --- DataStorage/Cache/Connection/RedisCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));