KVStorage에 unset 추가

This commit is contained in:
2018-05-12 05:46:43 +09:00
parent 29ce47251a
commit 2d24ba659f
+5 -1
View File
@@ -22,6 +22,10 @@ class KVStorage{
return $this->setValue($key, $value);
}
public function __unset($key){
$this->deleteValue($key);
}
public function resetCache(bool $disableCache=true):self{
if($disableCache){
$this->cacheData = null;
@@ -185,7 +189,7 @@ class KVStorage{
$result[$key] = null;
}
}
return $value;
return $result;
}
private function getDBValue($key){