Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/GoEdgeLab/EdgeNode
/ hash
Method
hash
internal/caches/storage_memory.go:431–433 ·
view source on GitHub ↗
计算Key Hash
(key string)
Source
from the content-addressed store, hash-verified
429
430
// 计算Key Hash
431
func
(this *MemoryStorage) hash(key string) uint64 {
432
return
xxhash.Sum64String(key)
433
}
434
435
// 清理任务
436
func
(this *MemoryStorage) purgeLoop() {
Callers
7
OpenReader
Method · 0.95
openWriter
Method · 0.95
Delete
Method · 0.95
AddToList
Method · 0.95
flushItem
Method · 0.95
deleteWithoutLocker
Method · 0.95
TestMemoryStorage_OpenReaderLock
Function · 0.95
Calls
no outgoing calls
Tested by
1
TestMemoryStorage_OpenReaderLock
Function · 0.76