Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/GoEdgeLab/EdgeNode
/ Exist
Method
Exist
internal/caches/list_interface.go:16–16 ·
view source on GitHub ↗
Exist 检查内容是否存在
(hash string)
Source
from the content-addressed store, hash-verified
14
15
// Exist 检查内容是否存在
16
Exist(hash string) (ok bool, size int64, err error)
17
18
// CleanPrefix 清除某个前缀的缓存
19
CleanPrefix(prefix string) error
Callers
15
TestTable_Exist
Function · 0.65
TestFileListHashMap_Load
Function · 0.65
BenchmarkFileListHashMap_Exist
Function · 0.65
BenchmarkMemoryList
Function · 0.65
openReader
Method · 0.65
openWriter
Method · 0.65
ExistQuickItem
Method · 0.65
TestKVFileList_Exist
Function · 0.65
TestKVFileList_ExistMany
Function · 0.65
BenchmarkKVFileList_Exist
Function · 0.65
OpenReader
Method · 0.65
openWriter
Method · 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
11
TestTable_Exist
Function · 0.52
TestFileListHashMap_Load
Function · 0.52
BenchmarkFileListHashMap_Exist
Function · 0.52
BenchmarkMemoryList
Function · 0.52
TestKVFileList_Exist
Function · 0.52
TestKVFileList_ExistMany
Function · 0.52
BenchmarkKVFileList_Exist
Function · 0.52
TestFileList_Add
Function · 0.52
TestFileList_Exist
Function · 0.52
TestFileList_Exist_Many_DB
Function · 0.52
BenchmarkFileList_Exist
Function · 0.52