MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / Set

Method Set

database/transactions_test.go:48–51  ·  view source on GitHub ↗
(ctx context.Context, key string, value interface{}, ttl time.Duration)

Source from the content-addressed store, hash-verified

46}
47
48func (m *mockCache) Set(ctx context.Context, key string, value interface{}, ttl time.Duration) error {
49 m.data[key] = value
50 return nil
51}
52
53func (m *mockCache) Get(ctx context.Context, key string, data interface{}) error {
54 if v, ok := m.data[key]; ok {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected