WithTTL sets the expiration duration for cache entries. Required.
(d time.Duration)
| 56 | |
| 57 | // WithTTL sets the expiration duration for cache entries. Required. |
| 58 | func WithTTL(d time.Duration) Option { |
| 59 | return func(c *config) { c.ttl = d } |
| 60 | } |
| 61 | |
| 62 | // WithLogger sets a structured logger for cache operations. |
| 63 | func WithLogger(l Logger) Option { |
no outgoing calls