del() public method

删除一条数据主键为$id的记录,
public del ( $id, $where = null ) : true/false
$id
$where string 指定匹配字段,默认为主键
return true/false
コード例 #1
0
ファイル: DBCache.php プロジェクト: kilmas/framework
 private function _filter_expire($rs)
 {
     if ($rs['expire'] != 0 and $rs['expire'] < time()) {
         $this->model->del($rs['id']);
         return false;
     } else {
         return $rs['cvalue'];
     }
 }