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
()
| 135 | // still recall within this process, but offloaded originals do not survive a |
| 136 | // restart and are not shared with other ChatCLI processes. |
| 137 | func (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 |
no outgoing calls