MCPcopy
hub / github.com/amir20/dozzle / Store

Method Store

internal/notification/ttl_cache.go:58–63  ·  view source on GitHub ↗

Store adds or updates a value in the cache with the configured TTL.

(key K, value V)

Source from the content-addressed store, hash-verified

56
57// Store adds or updates a value in the cache with the configured TTL.
58func (c *TTLCache[K, V]) Store(key K, value V) {
59 c.entries.Store(key, ttlEntry[V]{
60 value: value,
61 expiresAt: time.Now().Add(c.ttl),
62 })
63}
64
65// evict removes all expired entries.
66func (c *TTLCache[K, V]) evict() {

Callers 15

checkConnectivityMethod · 0.80
SubscribeEventsMethod · 0.80
initMethod · 0.80
observeMethod · 0.80
refreshMethod · 0.80
startListeningMethod · 0.80
FindContainerWithHostMethod · 0.80
AddTriggeredContainerMethod · 0.80
SetEventCooldownMethod · 0.80
SetMetricCooldownMethod · 0.80
resolveContainerMethod · 0.80

Calls

no outgoing calls

Tested by 1

StreamLogsMethod · 0.64