protected function _driverDel($k)
{
switch ($this->_type) {
case 'mysql':
$sql = "DELETE `{$this->_link['table']}` WHERE `_key` = '" . $this->_driver()->real_escape_string($k) . "'";
$rs = $this->_driver()->query($sql);
return $rs ? true : false;
case 'sqlite':
break;
case 'redis':
case 'ssdb':
return $this->_driver()->hdel($this->_link['path'], $k);
case 'rocksdb':
if (!$this->_driver) {
$this->_driver = new \RocksDB($this->_link['path']);
}
}
return false;
}