[agent/codex:gpt-5.4-mini] Read docs/RFC-STORE.md fully. Find features described in the... #152
2 changed files with 5 additions and 1 deletions
3
doc.go
3
doc.go
|
|
@ -1,6 +1,7 @@
|
|||
// Package store provides SQLite-backed key-value storage for grouped entries,
|
||||
// TTL expiry, namespace isolation, quota enforcement, reactive change
|
||||
// notifications, workspace journalling, and orphan recovery.
|
||||
// notifications, SQLite journal writes, workspace journalling, and orphan
|
||||
// recovery.
|
||||
//
|
||||
// Workspace files live under `.core/state/` and can be recovered with
|
||||
// `RecoverOrphans(".core/state/")`.
|
||||
|
|
|
|||
3
store.go
3
store.go
|
|
@ -83,6 +83,9 @@ func (journalConfig JournalConfiguration) isConfigured() bool {
|
|||
journalConfig.BucketName != ""
|
||||
}
|
||||
|
||||
// Store is the SQLite KV store with TTL expiry, namespace isolation,
|
||||
// reactive events, SQLite journal writes, and orphan recovery.
|
||||
//
|
||||
// Usage example: `storeInstance, err := store.NewConfigured(store.StoreConfig{DatabasePath: ":memory:", Journal: store.JournalConfiguration{EndpointURL: "http://127.0.0.1:8086", Organisation: "core", BucketName: "events"}, PurgeInterval: 30 * time.Second})`
|
||||
// Usage example: `value, err := storeInstance.Get("config", "colour")`
|
||||
type Store struct {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue