MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / WithCache

Function WithCache

pkg/api/options.go:24–28  ·  view source on GitHub ↗

WithCache sets a custom cache for the client.

(cache interfaces.Cache)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls