fix bug with ms and s

This commit is contained in:
Dennis Eichhorn 2021-10-11 23:41:22 +02:00
parent 534b325c24
commit 72b23f2928
2 changed files with 6 additions and 5 deletions

View File

@ -111,7 +111,7 @@ final class RedisCache extends ConnectionAbstract
}
if ($expire > 0) {
$this->con->setEx((string) $key, $expire * 1000, $this->build($value));
$this->con->setEx((string) $key, $expire, $this->build($value));
return;
}
@ -129,7 +129,7 @@ final class RedisCache extends ConnectionAbstract
}
if ($expire > 0) {
return $this->con->setNx((string) $key, $this->build($value), $expire * 1000);
return $this->con->setNx((string) $key, $this->build($value), $expire);
}
return $this->con->setNx((string) $key, $this->build($value));
@ -207,7 +207,7 @@ final class RedisCache extends ConnectionAbstract
$this->con->rename((string) $old, (string) $new);
if ($expire > 0) {
$this->con->expire((string) $new, $expire * 1000);
$this->con->expire((string) $new, $expire);
}
}
@ -264,7 +264,7 @@ final class RedisCache extends ConnectionAbstract
public function updateExpire(int | string $key, int $expire = -1) : bool
{
if ($expire > 0) {
$this->con->expire((string) $key, $expire * 1000);
$this->con->expire((string) $key, $expire);
}
return true;
@ -302,7 +302,7 @@ final class RedisCache extends ConnectionAbstract
}
if ($this->con->exists((string) $key) > 0) {
$this->set((string) $key, $value, $expire * 1000);
$this->set((string) $key, $value, $expire);
return true;
}

View File

@ -21,6 +21,7 @@ use phpOMS\Message\Mail\Imap;
use phpOMS\Message\Mail\MailHandler;
use phpOMS\Message\Mail\SubmitType;
use phpOMS\System\CharsetType;
use phpOMS\System\OperatingSystem;
/**
* @testdox phpOMS\tests\Message\MailHandlerTest: Abstract mail handler