MCPcopy
hub / github.com/chubin/wttr.in / Set

Method Set

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

Set stores a completed response in the cache under the given key. This should clear any in-progress state for the same key.

(key string, entry domain.CacheEntry)

Source from the content-addressed store, hash-verified

20 // Set stores a completed response in the cache under the given key.
21 // This should clear any in-progress state for the same key.
22 Set(key string, entry domain.CacheEntry)
23
24 // SetInProgressIfNotExists marks that a request for this key is currently being processed.
25 // Used to prevent duplicate upstream requests (coalescing).

Callers 9

DrawTemperatureDiagramFunction · 0.65
getUplinkFunction · 0.65
faviconHandlerFunction · 0.65
staticFilesHandlerFunction · 0.65
resizeImageFunction · 0.65
genTermFunction · 0.65
computeAndStoreMethod · 0.65
fetchAndCacheMethod · 0.65

Implementers 3

LRUCacherinternal/cache/lru.go
DiskCacherinternal/cache/disk.go
NoOpCacherinternal/cache/noop.go

Calls

no outgoing calls

Tested by

no test coverage detected