A simple key value store that I personally use for learning rust and getting comfortable with its learning curve, including concurrency support, borrowing and whatnot. Part of The Sprawl Project.
- Clone using SSH
$ git clone git@github.com:the-sprawl-project/construct-cache.git- Build the project
$ cd construct-cache
$ make dev- Run the server first
$ target/debug/construct_cache_server- Run the client
$ target/debug/construct_cache_client- Type
hfor help within the client.
When developing features, you might want to sync your protobufs to the main
spawl-protocol repository as well. This will allow other repositories to use
the same protobuf structures when accessing the Construct Cache.
To sync protobufs, do the following:
- Setup the
sprawl-protocolrepository through agit clone. - Set the
SPRAWL_PROTOCOLS_LOCAL_PATHvariable in your.rcfile (.zshrcfor example) to point to the root of the repository - Run
make sync-protos-localto sync the protobufs from thesprawl-protocolrepo to this project. - If any changes are made in this repo to the protobuf structures and should be
committed to the
sprawl-protocolrepository, runmake push-protosand commit the changes in that repository.
New features coming soon! Check out the issues tab.