KVStorage 버그 수정

This commit is contained in:
2018-05-12 06:03:29 +09:00
parent 2d24ba659f
commit bb49e6dec7
+2 -2
View File
@@ -92,7 +92,7 @@ class KVStorage{
if($onlyCache && $this->cacheData !== null && count($this->cacheData) > 0){
return $this->cacheData;
}
$result = $this->getAll();
$result = $this->getDBAll();
if($this->cacheData !== null){
$this->cacheData = $result;
}
@@ -171,7 +171,7 @@ class KVStorage{
{
$result[$key] = Json::decode($value);
}
return $value;
return $result;
}
private function getDBValues(array $keys): array{