MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / NewSQLiteFileList

Function NewSQLiteFileList

internal/caches/list_file_sqlite.go:39–44  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

37}
38
39func NewSQLiteFileList(dir string) ListInterface {
40 return &SQLiteFileList{
41 dir: dir,
42 memoryCache: ttlcache.NewCache[zero.Zero](),
43 }
44}
45
46func (this *SQLiteFileList) SetOldDir(oldDir string) {
47 this.oldDir = oldDir

Callers 15

TestFileListHashMap_LoadFunction · 0.92
TestFileList_InitFunction · 0.92
TestFileList_AddFunction · 0.92
TestFileList_Add_ManyFunction · 0.92
TestFileList_ExistFunction · 0.92
TestFileList_CleanPrefixFunction · 0.92
TestFileList_RemoveFunction · 0.92
TestFileList_PurgeFunction · 0.92
TestFileList_PurgeLFUFunction · 0.92
TestFileList_StatFunction · 0.92
TestFileList_CountFunction · 0.92

Calls 1

NewCacheFunction · 0.92

Tested by 15

TestFileListHashMap_LoadFunction · 0.74
TestFileList_InitFunction · 0.74
TestFileList_AddFunction · 0.74
TestFileList_Add_ManyFunction · 0.74
TestFileList_ExistFunction · 0.74
TestFileList_CleanPrefixFunction · 0.74
TestFileList_RemoveFunction · 0.74
TestFileList_PurgeFunction · 0.74
TestFileList_PurgeLFUFunction · 0.74
TestFileList_StatFunction · 0.74
TestFileList_CountFunction · 0.74