A simple and lightweight key-value pair DB for shell programming.
Install SHDB with defualt settings:
make
Specify the maximum available storage size for SHDB:
make SIZE=10
* SIZE=10 means setting the maximum available storage to 10MB. (the maximum size cannot exceed 1024MB)
shdb test
shdb statusshdb [-s|--shell] isset [key]shdb [-s|--shell] set [key] [value]shdb [-s|--shell] get [key]shdb [-s|--shell] delete [key]shdb [-s|--shell] countshdb uninstall
Use shdb console to enter the "REPL" mode.
isset [key]set [key] [value]get [key]delete [key]countexit
Please use the below syntax in shell programming:
shdb [-s|--shell] isset [key]shdb [-s|--shell] set [key] [value]shdb [-s|--shell] get [key]shdb [-s|--shell] delete [key]shdb [-s|--shell] count
Please create an issue if you have any compatibility issues.
@YHSPY
MIT