public function insertAll($array) { $ids = array(); foreach ($array as $hash) { $ids[] = $this->del('set')->set($hash)->insert(); } return $ids; }