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

Method Put

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

Source from the content-addressed store, hash-verified

39}
40
41func (r *RedisCache) Put(ctx context.Context, key string, data []byte) error {
42 return r.r.Set(ctx, r.pfx+key, data, 0).Err()
43}
44
45func (r *RedisCache) Delete(ctx context.Context, key string) error {
46 return r.r.Del(ctx, r.pfx+key).Err()

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected