From bb49e6dec758457ab55b8d8a1ddcefb611bbe192 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 12 May 2018 06:03:29 +0900 Subject: [PATCH] =?UTF-8?q?KVStorage=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sammo/KVStorage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sammo/KVStorage.php b/src/sammo/KVStorage.php index 8b6ae0b0..a15d6375 100644 --- a/src/sammo/KVStorage.php +++ b/src/sammo/KVStorage.php @@ -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{