update to get failure mode
This commit is contained in:
@@ -72,7 +72,8 @@ The full list of commands which your KV store should support are:
|
|||||||
- *get*: The format is `g,key`, where `key` is an integer. If the key
|
- *get*: The format is `g,key`, where `key` is an integer. If the key
|
||||||
is present, the system should print out the key, followed by a comma,
|
is present, the system should print out the key, followed by a comma,
|
||||||
followed by the value, followed by a newline (`\n`). If not present,
|
followed by the value, followed by a newline (`\n`). If not present,
|
||||||
nothing is printed.
|
print an error message on a line by itself, of the form `K not found`
|
||||||
|
where `K` is the actual value of the key, i.e., some integer.
|
||||||
- *delete*: The format is `d,key`, which either deletes the relevant
|
- *delete*: The format is `d,key`, which either deletes the relevant
|
||||||
key-value pair (and prints nothing), or fails to do so (and prints
|
key-value pair (and prints nothing), or fails to do so (and prints
|
||||||
`K not found` where `K` is the actual value of the key, i.e., some
|
`K not found` where `K` is the actual value of the key, i.e., some
|
||||||
|
|||||||
Reference in New Issue
Block a user