mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 23:08:41 +00:00
cache fixes
This commit is contained in:
parent
4b8475f890
commit
991d7d2b80
|
|
@ -113,7 +113,7 @@ final class RedisCache extends ConnectionAbstract
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($expire > 0) {
|
if ($expire > 0) {
|
||||||
$this->con->set((string) $key, $expire, $this->build($value));
|
$this->con->set((string) $key, $this->build($value), $expire);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -247,7 +247,10 @@ final class RedisCache extends ConnectionAbstract
|
||||||
$values = [];
|
$values = [];
|
||||||
|
|
||||||
foreach ($keys as $key) {
|
foreach ($keys as $key) {
|
||||||
if (\preg_match('/' . $pattern . '/', $key) === 1) {
|
if (\preg_match('/' . $pattern . '/', $key) !== 1) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$result = $this->con->get((string) $key);
|
$result = $this->con->get((string) $key);
|
||||||
if (\is_string($result) && ($result[0] ?? null) === self::DELIM) {
|
if (\is_string($result) && ($result[0] ?? null) === self::DELIM) {
|
||||||
$result = \substr($result, 1);
|
$result = \substr($result, 1);
|
||||||
|
|
@ -258,7 +261,6 @@ final class RedisCache extends ConnectionAbstract
|
||||||
|
|
||||||
$values[] = $result;
|
$values[] = $result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return $values;
|
return $values;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user