Skip to content

Redis Server Setup

Dawson Whitehead edited this page Jun 4, 2018 · 7 revisions

Using Redis Server

Setup- Repository Updating

In the tries update, we'll be adding the API repo as a submodule to our repo. This means you'll need to run git submodule update --init --recursive from the root directory to actually pull the submodule's content.

NOTE: For updating an out of date submodule in your repo, run git submodule update --remote --merge --recursive, commit the folder (like git commit api/) and push.

Addtionally, if you still have errors, you may have to go to api, api/lib/redis-tries, api/lib/hiredis, api/lib/redis-tries/hiredis, and api/lib/redis-tries/redisModulesSDK and run git pull origin master to update those.

Setup- Redis and Hiredis Installation

For the API setup, please refer to https://github.com/cmsc22000-project-2018/api to do their setup items- specifically the "Installing Redis" and "Installing Hiredis" parts.

Running the server

Finally, whenever you run something that uses the redis server (basically anything that uses our dictionary, which uses tries in the redis server), make another terminal window, navigate to the exact directory that you are going to be running the executable from, and start the redis server with redis-server. You should see some nice little ASCII art and a nice welcome message saying stuff was loaded. You can close the server after you finish running your executable by just killing it with CTRL-C.

Clone this wiki locally