An in-memory data structure database
Note: This project is for currently for educational purposes only. If you are looking to use something similar in a production environment, you should use redis.
-
cmake >= 3.10
-
gcc
git clone [email protected]:vincer2040/lexidb.git
cd lexidb
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
from withing the build durectory, optionally run tests:
make test
./lexidb
in a new terminal
./lexi-cli
./lexi-cli
lexi> set foo bar
ok
lexi> get foo
"bar"
lexi> keys
"foo"
lexi> set baz 500
ok
lexi> get baz
500
lexi> set foo "bar baz"
ok
lexi> get foo
"bar baz"
currently, there are client implentations in:
See those repos for for more information
change the default address
./lexidb --address <address>
change the default port:
./lexidb --port <port>
change the loglevel
./lexidb --loglevel info | debug | verbose
info - only logs when the server starts, connections are established, and connections are closed
debug - logs info, commands, and other debugging information
verbose - logs everything
change the path of lexi.conf configuration file
./lexidb --config <path to config>
add users for the database by editing the lexi.conf file
see lexi.conf for more details