diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Cache/Drivers/Redis.php b/snappymail/v/0.0.0/app/libraries/MailSo/Cache/Drivers/Redis.php index 53c5db0b9..94345c037 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Cache/Drivers/Redis.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Cache/Drivers/Redis.php @@ -70,7 +70,14 @@ class Redis implements \MailSo\Cache\DriverInterface public function Set(string $sKey, string $sValue) : bool { - return $this->oRedis ? $this->oRedis->setex($this->generateCachedKey($sKey), $this->iExpire, $sValue) : false; + if (!$this->oRedis) + { + return false; + } + + $sValue = $this->oRedis->setex($this->generateCachedKey($sKey), $this->iExpire, $sValue); + + return $sValue === true || $sValue == 'OK'; } public function Get(string $sKey) : string