To compile release version:
make build_rel
To run stress tests vs naive (non-persistent) Python3 solution:
make test
To do both, just:
make
--help tells almost everything about how to use the program
Persistent key-value storage by @mrworker27
reads commands (one of: get/insert/reload/exit) from stdin, writes output into stdout
writes logs into stderr (log-level can be specified via command line args)
`get` command input:
get\n
n\n
[key: 32-byte integer in hex format]\n x n
`get` command output:
[value: 32-byte integer in hex format]\n x n
`insert` command input:
insert\n
n\n
[key: 32-byte integer in hex format] [value: 32-byte integer in hex format]\n x n
`insert` command output:
*none*
`reload` command input:
reload\n
`reload` command output:
*none*, reloads
`exit` command input:
exit\n
`exit` command output:
*none*, graceful exit
Usage: kv [OPTIONS] --root <ROOT>
Options:
-r, --root <ROOT>
Path to files with data
--log-level <LOG_LEVEL>
Log level (ERROR, WARN, INFO, DEBUG, TRACE)
[default: WARN]
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version