MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / SQLiteFileList

Struct SQLiteFileList

internal/caches/list_file_sqlite.go:26–37  ·  view source on GitHub ↗

SQLiteFileList 文件缓存列表管理

Source from the content-addressed store, hash-verified

24
25// SQLiteFileList 文件缓存列表管理
26type 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
39func NewSQLiteFileList(dir string) ListInterface {
40 return &SQLiteFileList{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected