fix: KVStorage의 기본 상태가 turnOnCache가 아니었던 점 수정
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user