MCPcopy
hub / github.com/nextlevelbuilder/goclaw / Set

Method Set

internal/cache/cache.go:15–15  ·  view source on GitHub ↗

Set stores a value with an optional TTL. If ttl is 0, the entry never expires.

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

Source from the content-addressed store, hash-verified

13
14 // Set stores a value with an optional TTL. If ttl is 0, the entry never expires.
15 Set(ctx context.Context, key string, value V, ttl time.Duration)
16
17 // Delete removes a single key.
18 Delete(ctx context.Context, key string)

Calls

no outgoing calls