update to 2.8.9, fix light cache wrong

This commit is contained in:
crazywhalecc 2023-06-12 18:33:06 +08:00 committed by Jerry Ma
parent 21f310852a
commit ea83ea2cce
2 changed files with 3 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class LightCache
} else {
return false;
}
$result = self::$kv_table->set((string)$k, [
$result = self::$kv_table->set((string) $k, [
'value' => $value,
'expire' => $v['expire'],
'data_type' => $data_type,
@ -191,7 +191,7 @@ class LightCache
} elseif (is_bool($value)) {
$data_type = 'bool';
$value = json_encode($value);
} else {
} else {
throw new LightCacheException('E00048', 'Only can set string, array and int');
}
try {

View File

@ -6,6 +6,7 @@ namespace ZM\Store;
use Exception;
use Swoole\Table;
use ZM\Config\ZMConfig;
use ZM\Exception\LightCacheException;
use ZM\Exception\ZMException;