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