Tutorial

Mini-Redis

The project that you will build in this tutorial is available as Mini-Redis on GitHub. Mini-Redis is designed with the primary goal of learning Tokio, and is therefore very well commented, but this also means that Mini-Redis is missing some features you would want in a real Redis library. You can find production-ready Redis libraries on .

We will use Mini-Redis directly in the tutorial. This allows us to use parts of Mini-Redis in the tutorial before we implement them later in the tutorial.

Getting Help

At any point, if you get stuck, you can always get help on Discord or . Don’t worry about asking “beginner” questions. We all start somewhere and are happy to help.

Prerequisites

Readers should already be familiar with Rust. The is an excellent resource to get started with.

No pre-existing knowledge of Redis is required.

Before getting started, you should make sure that you have the Rust toolchain installed and ready to go. If you don’t have it, the easiest way to install it is using .

This tutorial requires a minimum of Rust version , but the most recent stable version of Rust is recommended.

To check that Rust is installed on your computer, run the following:

Mini-Redis server

Next, install the Mini-Redis server. This will be used to test our client as we build it.

Make sure that it was successfully installed by starting the server:

Then try to get the key using

You should see .

Ready to go