MCPcopy Create free account
hub / github.com/diillson/chatcli / StoreFallback

Method StoreFallback

cli/compress/layer.go:137–142  ·  view source on GitHub ↗

StoreFallback reports why the persistent CCR store could not be opened, or nil when the configured store is active. A non-nil value means the layer is running on a bounded in-memory store: compression still works and markers still recall within this process, but offloaded originals do not survive a

()

Source from the content-addressed store, hash-verified

135// still recall within this process, but offloaded originals do not survive a
136// restart and are not shared with other ChatCLI processes.
137func (l *Layer) StoreFallback() error {
138 if l == nil {
139 return nil
140 }
141 return l.storeFallbackErr
142}
143
144// newCCRStoreFromEnv resolves the CCR directory and size/TTL caps and opens a
145// DiskStore. On failure it falls back to a bounded in-memory store (same size

Calls

no outgoing calls