MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / Put

Method Put

certcache/local.go:55–62  ·  view source on GitHub ↗
(ctx context.Context, key string, data []byte)

Source from the content-addressed store, hash-verified

53}
54
55func (cc *LocalCertCache) Put(ctx context.Context, key string, data []byte) error {
56 cc.cache.Set(key, &certCacheValue{
57 ts: time.Now(),
58 res: data,
59 err: nil,
60 })
61 return cc.next.Put(ctx, key, data)
62}
63
64func (cc *LocalCertCache) Delete(ctx context.Context, key string) error {
65 cc.cache.Delete(key)

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected