MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / Set

Method Set

api/pkg/cache/memory_cache.go:41–47  ·  view source on GitHub ↗

Set an item in the redis cache

(ctx context.Context, key string, value string, ttl time.Duration)

Source from the content-addressed store, hash-verified

39
40// Set an item in the redis cache
41func (cache *memoryCache) Set(ctx context.Context, key string, value string, ttl time.Duration) error {
42 ctx, span := cache.tracer.Start(ctx)
43 defer span.End()
44
45 cache.store.Set(key, value, ttl)
46 return nil
47}

Callers

nothing calls this directly

Calls 2

StartMethod · 0.65
SetMethod · 0.65

Tested by

no test coverage detected