Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleChrome/webstatus.dev
/ GetTTL
Method
GetTTL
lib/cachetypes/config.go:24–26 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
22
}
23
24
func
(c CacheConfig) GetTTL() time.Duration {
25
return
c.ttl
26
}
27
28
// NewCacheConfig creates a new CacheConfig instance.
29
func
NewCacheConfig(ttl time.Duration) *CacheConfig {
Callers
1
Cache
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected