memory/jsonl: add disk-backed Store with full CRUD, Compact, flock, and provider adapter

This commit is contained in:
sausheong committed 2026-05-09 06:54:07 +08:00
1 parent 1acf0d48a3
commit d2491dc90f
5 files changed
+828 -1

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
//go:build windows
package jsonl
import "os"
// lockExclusive is a no-op on Windows. Cross-process safety on Windows
// would require LockFileEx / Mutex; out of scope for this default
// implementation. Single-process Windows users are unaffected.
func lockExclusive(_ *os.File) error { return nil }
// lockShared is a no-op on Windows. See lockExclusive.
func lockShared(_ *os.File) error { return nil }