MCPcopy Index your code
hub / github.com/coder/coder / WithCacheClock

Function WithCacheClock

coderd/cryptokeys/cache.go:98–102  ·  view source on GitHub ↗
(clock quartz.Clock)

Source from the content-addressed store, hash-verified

96type CacheOption func(*cache)
97
98func WithCacheClock(clock quartz.Clock) CacheOption {
99 return func(d *cache) {
100 d.clock = clock
101 }
102}
103
104// NewSigningCache instantiates a cache. Close should be called to release resources
105// associated with its internal timer.

Callers 1

TestCryptoKeyCacheFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestCryptoKeyCacheFunction · 0.74