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

Method Open

cmd/cache-proxy/cache.go:286–293  ·  view source on GitHub ↗

Open returns a reader for the cached data and counts a cache hit. Caller must close the reader.

(key string)

Source from the content-addressed store, hash-verified

284 dc.recencyNow = option.recencyNow
285 }
286 if option.recencyInterval > 0 {
287 dc.recencyInterval = option.recencyInterval
288 }
289 }
290 if dc.maxEntries > dc.hardMaxEntries {
291 dc.maxEntries = dc.hardMaxEntries
292 }
293
294 startupContext := option.startupContext
295 if startupContext == nil {
296 startupContext = context.Background()

Callers 15

LoadStatementsMethod · 0.45
NewConfigStoreFunction · 0.45
ProbeMetadataStoreFunction · 0.45
RegisterUIFunction · 0.45
HandleProxyMethod · 0.45
HandlePeerGetMethod · 0.45
openFileMethod · 0.45
TestDiskCacheOpenFunction · 0.45
readDirNamesFunction · 0.45
TestPutStreamRoundTripFunction · 0.45
TestPutStreamOverwriteFunction · 0.45

Calls 1

openFileMethod · 0.95

Tested by 15

TestDiskCacheOpenFunction · 0.36
readDirNamesFunction · 0.36
TestPutStreamRoundTripFunction · 0.36
TestPutStreamOverwriteFunction · 0.36
runRotationScenarioFunction · 0.36
openDuckgresConnFunction · 0.36
openCatalogConnFunction · 0.36
openConnToPortFunction · 0.36
TestConnectionParametersFunction · 0.36