Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ NewList
Function
NewList
internal/utils/expires/list.go:22–31 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
20
}
21
22
func
NewList() *List {
23
var
list = &List{
24
expireMap:
map
[int64]ItemMap{},
25
itemsMap:
map
[uint64]int64{},
26
}
27
28
SharedManager.Add(list)
29
30
return
list
31
}
32
33
func
NewSingletonList() *List {
34
var
list = &List{
Callers
12
TestList_Add
Function · 0.92
TestList_Add_Overwrite
Function · 0.92
TestList_Remove
Function · 0.92
TestList_GC
Function · 0.92
TestList_GC_Batch
Function · 0.92
TestList_Start_GC
Function · 0.92
TestList_ManyItems
Function · 0.92
TestList_Memory
Function · 0.92
BenchmarkList_Add
Function · 0.92
BenchmarkList_GC
Function · 0.92
NewIPList
Function · 0.92
NewIPList
Function · 0.92
Calls
1
Add
Method · 0.65
Tested by
10
TestList_Add
Function · 0.74
TestList_Add_Overwrite
Function · 0.74
TestList_Remove
Function · 0.74
TestList_GC
Function · 0.74
TestList_GC_Batch
Function · 0.74
TestList_Start_GC
Function · 0.74
TestList_ManyItems
Function · 0.74
TestList_Memory
Function · 0.74
BenchmarkList_Add
Function · 0.74
BenchmarkList_GC
Function · 0.74