mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 23:25:35 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d1952f5f8 | ||
|
|
6543574695 | ||
|
|
5b1c771a2d |
@@ -30,7 +30,7 @@ class ConsoleApplication extends Application
|
|||||||
{
|
{
|
||||||
public const VERSION_ID = 480;
|
public const VERSION_ID = 480;
|
||||||
|
|
||||||
public const VERSION = '2.8.6';
|
public const VERSION = '2.8.7';
|
||||||
|
|
||||||
private static $obj;
|
private static $obj;
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ class LightCache
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$result = self::$kv_table->set($k, [
|
$result = self::$kv_table->set((string)$k, [
|
||||||
'value' => $value,
|
'value' => $value,
|
||||||
'expire' => $v['expire'],
|
'expire' => $v['expire'],
|
||||||
'data_type' => $data_type,
|
'data_type' => $data_type,
|
||||||
@@ -188,7 +188,10 @@ class LightCache
|
|||||||
$data_type = '';
|
$data_type = '';
|
||||||
} elseif (is_int($value)) {
|
} elseif (is_int($value)) {
|
||||||
$data_type = 'int';
|
$data_type = 'int';
|
||||||
} else {
|
} elseif (is_bool($value)) {
|
||||||
|
$data_type = 'bool';
|
||||||
|
$value = json_encode($value);
|
||||||
|
} else {
|
||||||
throw new LightCacheException('E00048', 'Only can set string, array and int');
|
throw new LightCacheException('E00048', 'Only can set string, array and int');
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user