MCPcopy 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_LoadFunction · 0.65
TestMemoryList_AddFunction · 0.65
TestMemoryList_RemoveFunction · 0.65
TestMemoryList_PurgeFunction · 0.65
TestMemoryList_PurgeLFUFunction · 0.65
TestMemoryList_CleanAllFunction · 0.65
TestMemoryList_GCFunction · 0.65

Implementers 3

MemoryListinternal/caches/list_memory.go
KVFileListinternal/caches/list_file_kv.go
SQLiteFileListinternal/caches/list_file_sqlite.go

Calls

no outgoing calls

Tested by 15

TestFileListHashMap_LoadFunction · 0.52
TestMemoryList_AddFunction · 0.52
TestMemoryList_RemoveFunction · 0.52
TestMemoryList_PurgeFunction · 0.52
TestMemoryList_PurgeLFUFunction · 0.52
TestMemoryList_CleanAllFunction · 0.52
TestMemoryList_GCFunction · 0.52