(hash string)
| 216 | } |
| 217 | |
| 218 | func (this *SQLiteFileListDB) DeleteSync(hash string) error { |
| 219 | this.hashMap.Delete(hash) |
| 220 | |
| 221 | _, err := this.deleteByHashStmt.Exec(hash) |
| 222 | if err != nil { |
| 223 | return err |
| 224 | } |
| 225 | return nil |
| 226 | } |
| 227 | |
| 228 | func (this *SQLiteFileListDB) ListExpiredItems(count int) (hashList []string, err error) { |
| 229 | if !this.isReady { |