fix: KVStorage의 기본 상태가 turnOnCache가 아니었던 점 수정

This commit is contained in:
2021-12-09 00:36:15 +09:00
parent 1727d34853
commit 26ea6a6c69
+8
View File
@@ -26,6 +26,7 @@ class KVStorage{
$this->db = $db;
$this->storNamespace = $storNamespace;
$this->tableName = $tableName;
$this->turnOnCache();
}
public static function getValuesFromInterNamespace(\MeekroDB $db, string $tableName, $key):array{
@@ -58,6 +59,13 @@ class KVStorage{
return $this;
}
public function turnOffCache(): self{
if($this->cacheData !== null){
$this->cacheData = null;
}
return $this;
}
public function resetCache(bool $disableCache=true):self{
if($disableCache){
$this->cacheData = null;