KVStorage에 unset 추가
This commit is contained in:
@@ -22,6 +22,10 @@ class KVStorage{
|
|||||||
return $this->setValue($key, $value);
|
return $this->setValue($key, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __unset($key){
|
||||||
|
$this->deleteValue($key);
|
||||||
|
}
|
||||||
|
|
||||||
public function resetCache(bool $disableCache=true):self{
|
public function resetCache(bool $disableCache=true):self{
|
||||||
if($disableCache){
|
if($disableCache){
|
||||||
$this->cacheData = null;
|
$this->cacheData = null;
|
||||||
@@ -185,7 +189,7 @@ class KVStorage{
|
|||||||
$result[$key] = null;
|
$result[$key] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $value;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getDBValue($key){
|
private function getDBValue($key){
|
||||||
|
|||||||
Reference in New Issue
Block a user