Implement a write-ahead log (WAL) key-value store in a single file /app/store.py as a module. Your module…
Implement a write-ahead log (WAL) key-value store in a single file /app/store.py as a module. Your module…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). WAL format: each line is a JSON object with exactly these fields: - "op" : either "put" or "del" - "key" …
The task
WAL format: each line is a JSON object with exactly these fields: - `"op"`: either `"put"` or `"del"` - `"key"`: string - `"value"`: string (present only for `"put"`, must be absent for `"del"`) - `"timestamp"`: integer microseconds since epoch when the operation was created
Part of ai-and/termgrade-environments.