MCPcopy Create free account
hub / github.com/astercloud/aster / makeKey

Function makeKey

pkg/memory/logic/store_inmemory.go:25–27  ·  view source on GitHub ↗

makeKey 生成存储键

(namespace, key string)

Source from the content-addressed store, hash-verified

23
24// makeKey 生成存储键
25func makeKey(namespace, key string) string {
26 return namespace + ":" + key
27}
28
29// Save 保存或更新 Memory
30func (s *InMemoryStore) Save(ctx context.Context, memory *LogicMemory) error {

Callers 5

TestInMemoryStore_PruneFunction · 0.70
SaveMethod · 0.70
GetMethod · 0.70
DeleteMethod · 0.70
IncrementAccessCountMethod · 0.70

Calls

no outgoing calls

Tested by 1

TestInMemoryStore_PruneFunction · 0.56