MCPcopy 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_ExistFunction · 0.65
TestFileListHashMap_LoadFunction · 0.65
BenchmarkMemoryListFunction · 0.65
openReaderMethod · 0.65
openWriterMethod · 0.65
ExistQuickItemMethod · 0.65
TestKVFileList_ExistFunction · 0.65
TestKVFileList_ExistManyFunction · 0.65
OpenReaderMethod · 0.65
openWriterMethod · 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 11

TestTable_ExistFunction · 0.52
TestFileListHashMap_LoadFunction · 0.52
BenchmarkMemoryListFunction · 0.52
TestKVFileList_ExistFunction · 0.52
TestKVFileList_ExistManyFunction · 0.52
TestFileList_AddFunction · 0.52
TestFileList_ExistFunction · 0.52
BenchmarkFileList_ExistFunction · 0.52