WithCache sets a custom cache for the client.
(cache interfaces.Cache)
| 22 | |
| 23 | // WithCache sets a custom cache for the client. |
| 24 | func WithCache(cache interfaces.Cache) ClientOption { |
| 25 | return func(opts *ClientOptions) { |
| 26 | opts.Cache = cache |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | // defaultOptions returns ClientOptions with sensible defaults. |
| 31 | func defaultOptions() *ClientOptions { |
no outgoing calls