Implement a WAL-backed key-value store CLI tool in Python at /app/kv.py . The tool supports four commands:
Implement a WAL-backed key-value store CLI tool in Python at /app/kv.py . The tool supports four commands:: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - SET , DEL , GET commands are read from stdin , one per line. - RECOVER is both a…
The task
Exact I/O contract: - `SET`, `DEL`, `GET` commands are read from `stdin`, one per line. - `RECOVER` is both a command from stdin AND a valid WAL record type. - On `SET` or `DEL`, the command MUST be appended to the WAL file BEFORE the response is printed. - On `RECOVER` from stdin, the tool does NOT write anything to…
Part of ai-and/termgrade-environments.