MCPcopy Create free account
hub / github.com/anthdm/ggcache / Set

Method Set

cache.go:76–99  ·  view source on GitHub ↗

Set adds or updates the cache with the specified key-value pair. It acquires a write lock to ensure concurrent safety during insertion. If the time-to-live (TTL) duration is greater than zero, a goroutine is launched to remove the entry after the specified duration. The key-value pair is stored in t

(key, value []byte, ttl time.Duration)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected