MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / Cache

Method Cache

backend/pkg/httpserver/server.go:244–244  ·  view source on GitHub ↗

Cache stores a value associated with a key in the cache.

(context.Context, string, []byte, ...cachetypes.CacheOption)

Source from the content-addressed store, hash-verified

242 maxPageSize := 100
243 if pageSize != nil {
244 if *pageSize >= 1 && *pageSize <= maxPageSize {
245 return *pageSize
246 }
247 }

Callers 4

AttemptCacheMethod · 0.65
TestLocalDataCacheFunction · 0.65
TestValkeyDataCacheFunction · 0.65

Implementers 2

MockRawBytesDataCacherbackend/pkg/httpserver/cache_test.go
MockDataCacherworkflows/steps/services/wpt_consumer/

Calls

no outgoing calls

Tested by 3

TestLocalDataCacheFunction · 0.52
TestValkeyDataCacheFunction · 0.52