mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-14 11:08:40 +00:00
fix bug with ms and s
This commit is contained in:
parent
534b325c24
commit
72b23f2928
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user