Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
Run
Method · 0.65
openReader
Method · 0.65
TestMemoryStorage_OpenWriter
Function · 0.65
TestFileStorage_Read
Function · 0.65
TestFileStorage_Read_HTTP_Response
Function · 0.65
TestFileStorage_Read_NotFound
Function · 0.65
BenchmarkFileStorage_Read
Function · 0.65
doCacheRead
Method · 0.65
tryPartialReader
Method · 0.65
handleReadCache
Method · 0.65
Implementers
2
FileStorage
internal/caches/storage_file.go
MemoryStorage
internal/caches/storage_memory.go
Calls
no outgoing calls
Tested by
5
TestMemoryStorage_OpenWriter
Function · 0.52
TestFileStorage_Read
Function · 0.52
TestFileStorage_Read_HTTP_Response
Function · 0.52
TestFileStorage_Read_NotFound
Function · 0.52
BenchmarkFileStorage_Read
Function · 0.52