diff --git a/src/ZM/Store/LightCache.php b/src/ZM/Store/LightCache.php index d5d56a7d..64b5a545 100644 --- a/src/ZM/Store/LightCache.php +++ b/src/ZM/Store/LightCache.php @@ -188,7 +188,10 @@ class LightCache $data_type = ''; } elseif (is_int($value)) { $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'); } try {