WithMaxBytes sets the maximum total size (in bytes) for the NATS KV bucket. When the limit is reached, NATS discards the oldest entries. Ignored for in-memory backend.
(n int64)
| 75 | // WithMaxBytes sets the maximum total size (in bytes) for the NATS KV bucket. |
| 76 | // When the limit is reached, NATS discards the oldest entries. Ignored for in-memory backend. |
| 77 | func WithMaxBytes(n int64) Option { |
| 78 | return func(c *config) { c.maxBytes = n } |
| 79 | } |
| 80 | |
| 81 | // WithDescription sets the NATS KV bucket description. Ignored for in-memory backend. |
| 82 | func WithDescription(desc string) Option { |
no outgoing calls