MCPcopy
hub / github.com/mudler/LocalAI / SetBackend

Method SetBackend

core/services/galleryop/operation.go:343–347  ·  view source on GitHub ↗

SetBackend sets a key-value pair and marks it as a backend operation

(key string, value string)

Source from the content-addressed store, hash-verified

341
342// SetBackend sets a key-value pair and marks it as a backend operation
343func (m *OpCache) SetBackend(key string, value string) {
344 m.status.Set(key, value)
345 m.backendOps.Set(key, true)
346 m.persistAndBroadcastStart(key, value, true)
347}
348
349func (m *OpCache) persistAndBroadcastStart(key, value string, isBackend bool) {
350 m.mu.RLock()

Calls 2

SetMethod · 0.65

Tested by

no test coverage detected