WithClock sets the clock used by the subscription cache. Defaults to a real clock when not provided.
(clock quartz.Clock)
| 75 | // WithClock sets the clock used by the subscription cache. Defaults to a real |
| 76 | // clock when not provided. |
| 77 | func WithClock(clock quartz.Clock) Option { |
| 78 | return func(o *options) { |
| 79 | o.clock = clock |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | // WithSubscriptionCacheTTL sets the in-memory subscription cache TTL. Defaults |
| 84 | // to three minutes when not provided or when given a non-positive duration. |