mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
debug reverse value for replace
This commit is contained in:
parent
d96798b6b3
commit
b3186cce3a
|
|
@ -133,7 +133,7 @@ class RedisCache extends ConnectionAbstract
|
|||
*/
|
||||
public function get($key, int $expire = -1)
|
||||
{
|
||||
if ($this->status !== CacheStatus::OK || !$this->con->exists($key)) {
|
||||
if ($this->status !== CacheStatus::OK || $this->con->exists($key) < 1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -197,8 +197,6 @@ class RedisCache extends ConnectionAbstract
|
|||
return false;
|
||||
}
|
||||
|
||||
// todo: parse value
|
||||
|
||||
if ($this->con->exists($key) > 0) {
|
||||
$this->set($key, $this->build($value), $expire);
|
||||
|
||||
|
|
@ -306,6 +304,7 @@ class RedisCache extends ConnectionAbstract
|
|||
*/
|
||||
private function reverseValue(int $type, $raw, int $start)
|
||||
{
|
||||
var_dump($raw);
|
||||
switch ($type) {
|
||||
case CacheValueType::_INT:
|
||||
return (int) \substr($raw, $start + 1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user