Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/GoEdgeLab/EdgeNode
/ Add
Method
Add
internal/caches/list_interface.go:13–13 ·
view source on GitHub ↗
Add 添加内容
(hash string, item *Item)
Source
from the content-addressed store, hash-verified
11
12
// Add 添加内容
13
Add(hash string, item *Item) error
14
15
// Exist 检查内容是否存在
16
Exist(hash string) (ok bool, size int64, err error)
Callers
15
TestFileListHashMap_Memory
Function · 0.65
TestFileListHashMap_Load
Function · 0.65
TestFileListHashMap_Delete
Function · 0.65
TestFileListHashMap_Clean
Function · 0.65
BenchmarkFileListHashMap_Exist
Function · 0.65
TestMemoryList_Add
Function · 0.65
TestMemoryList_Remove
Function · 0.65
TestMemoryList_Purge
Function · 0.65
TestMemoryList_Purge_Large_List
Function · 0.65
TestMemoryList_PurgeLFU
Function · 0.65
TestMemoryList_CleanAll
Function · 0.65
TestMemoryList_GC
Function · 0.65
Implementers
3
MemoryList
internal/caches/list_memory.go
KVFileList
internal/caches/list_file_kv.go
SQLiteFileList
internal/caches/list_file_sqlite.go
Calls
no outgoing calls
Tested by
15
TestFileListHashMap_Memory
Function · 0.52
TestFileListHashMap_Load
Function · 0.52
TestFileListHashMap_Delete
Function · 0.52
TestFileListHashMap_Clean
Function · 0.52
BenchmarkFileListHashMap_Exist
Function · 0.52
TestMemoryList_Add
Function · 0.52
TestMemoryList_Remove
Function · 0.52
TestMemoryList_Purge
Function · 0.52
TestMemoryList_Purge_Large_List
Function · 0.52
TestMemoryList_PurgeLFU
Function · 0.52
TestMemoryList_CleanAll
Function · 0.52
TestMemoryList_GC
Function · 0.52