Implement a persistent write-ahead-log (WAL) key-value store at /store/wal kv.py that provides a CLI…
Implement a persistent write-ahead-log (WAL) key-value store at /store/wal kv.py that provides a CLI…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Storage layout : - The WAL file is /store/wal.log . It is append-only. Each entry is a single line (terminated by…
The task
**Storage layout**: - The WAL file is `/store/wal.log`. It is append-only. Each entry is a single line (terminated by `\n`). - The store's in-memory state is rebuilt entirely from `/store/wal.log` at startup. There is no separate data file. - The WAL format is: `<key><separator><value><newline>` where `<separator>`…
Part of ai-and/termgrade-environments.