SQLiteFileList 文件缓存列表管理
| 24 | |
| 25 | // SQLiteFileList 文件缓存列表管理 |
| 26 | type SQLiteFileList struct { |
| 27 | dir string |
| 28 | dbList [CountFileDB]*SQLiteFileListDB |
| 29 | |
| 30 | onAdd func(item *Item) |
| 31 | onRemove func(item *Item) |
| 32 | |
| 33 | memoryCache *ttlcache.Cache[zero.Zero] |
| 34 | |
| 35 | // 老数据库地址 |
| 36 | oldDir string |
| 37 | } |
| 38 | |
| 39 | func NewSQLiteFileList(dir string) ListInterface { |
| 40 | return &SQLiteFileList{ |
nothing calls this directly
no outgoing calls
no test coverage detected