MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / WithMaxBytes

Function WithMaxBytes

pkg/cache/cache.go:77–79  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
77func 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.
82func WithDescription(desc string) Option {

Callers 4

NewFunction · 0.92
NewFunction · 0.92

Calls

no outgoing calls