January 2019
Intermediate to advanced
520 pages
14h 32m
English
We have started a Redis instance in a Docker container, so now, we can start creating a command-line tool to allow us to connect to that database instance and put some information into it. This utility will be different from the ones we created for PostgreSQL and MySQL, because Redis doesn't use the SQL language. We will use specific API methods that are available in Redis.
In this section, we will create a new binary crate and add functions that set or get data from Redis using r2d2::Pool. After this, we will call them in response to subcommands that a user specified as command-line arguments for the command.
Read now
Unlock full access