MCPcopy Create free account
hub / github.com/PostHog/duckgres / CacheKey

Function CacheKey

cmd/cache-proxy/cache.go:66–70  ·  view source on GitHub ↗

CacheKey computes a deterministic cache key from a full URL and byte range. The URL includes scheme, host, path, and query — so different buckets, regions, or query-signed URLs naturally produce different keys.

(url, rangeHeader string)

Source from the content-addressed store, hash-verified

64 })
65 cacheHardEntryLimit = promauto.NewGauge(prometheus.GaugeOpts{
66 Name: "cache_proxy_cache_hard_entry_limit",
67 Help: "Non-configurable exact-index safety guardrail",
68 })
69 cacheExactIndexEstimatedBytes = promauto.NewGauge(prometheus.GaugeOpts{
70 Name: "cache_proxy_cache_exact_index_estimated_bytes",
71 Help: "Conservative estimated bytes occupied by exact-index metadata and keys",
72 })
73 cacheOwnedBytes = promauto.NewGauge(prometheus.GaugeOpts{

Callers 2

HandleProxyMethod · 0.85

Calls

no outgoing calls

Tested by 1