WithLogger sets a structured logger for cache operations.
(l Logger)
| 61 | |
| 62 | // WithLogger sets a structured logger for cache operations. |
| 63 | func WithLogger(l Logger) Option { |
| 64 | return func(c *config) { c.logger = l } |
| 65 | } |
| 66 | |
| 67 | // WithNATS enables the NATS JetStream KV backend. |
| 68 | func WithNATS(conn *nats.Conn, bucketName string) Option { |
no outgoing calls
no test coverage detected