MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / OpenReader

Method OpenReader

internal/caches/storage_interface.go:13–13  ·  view source on GitHub ↗

OpenReader 读取缓存

(key string, useStale bool, isPartial bool)

Source from the content-addressed store, hash-verified

11
12 // OpenReader 读取缓存
13 OpenReader(key string, useStale bool, isPartial bool) (reader Reader, err error)
14
15 // OpenWriter 打开缓存写入器等待写入
16 // size 和 maxSize 可能为-1

Callers 10

RunMethod · 0.65
openReaderMethod · 0.65
TestFileStorage_ReadFunction · 0.65
doCacheReadMethod · 0.65
tryPartialReaderMethod · 0.65
handleReadCacheMethod · 0.65

Implementers 2

FileStorageinternal/caches/storage_file.go
MemoryStorageinternal/caches/storage_memory.go

Calls

no outgoing calls

Tested by 5

TestFileStorage_ReadFunction · 0.52