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

Function NewCacheConfig

lib/cachetypes/config.go:29–33  ·  view source on GitHub ↗

NewCacheConfig creates a new CacheConfig instance.

(ttl time.Duration)

Source from the content-addressed store, hash-verified

27
28// NewCacheConfig creates a new CacheConfig instance.
29func NewCacheConfig(ttl time.Duration) *CacheConfig {
30 return &CacheConfig{
31 ttl: ttl,
32 }
33}
34
35// CacheOption is a function that configures the cache operation.
36type CacheOption func(*CacheConfig)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected