fix: KVStorage의 기본 상태가 turnOnCache가 아니었던 점 수정
This commit is contained in:
@@ -26,6 +26,7 @@ class KVStorage{
|
|||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->storNamespace = $storNamespace;
|
$this->storNamespace = $storNamespace;
|
||||||
$this->tableName = $tableName;
|
$this->tableName = $tableName;
|
||||||
|
$this->turnOnCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getValuesFromInterNamespace(\MeekroDB $db, string $tableName, $key):array{
|
public static function getValuesFromInterNamespace(\MeekroDB $db, string $tableName, $key):array{
|
||||||
@@ -58,6 +59,13 @@ class KVStorage{
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function turnOffCache(): self{
|
||||||
|
if($this->cacheData !== null){
|
||||||
|
$this->cacheData = null;
|
||||||
|
}
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function resetCache(bool $disableCache=true):self{
|
public function resetCache(bool $disableCache=true):self{
|
||||||
if($disableCache){
|
if($disableCache){
|
||||||
$this->cacheData = null;
|
$this->cacheData = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user