Working with Numbers in Redis Using C++

Welcome back to our Redis course! Now that you know how to connect to a Redis server, it's time to move forward and explore how to work with numbers in Redis. This unit builds on our previous lesson, so ensure you're comfortable with establishing a connection to a Redis server.

What You'll Learn

In this lesson, you will learn how to:

  1. Set numeric values in Redis.
  2. Retrieve and print numeric values.

Here's the code snippet that we'll be working with:

Let's break down the code:

  • As in the previous lesson, we first include the necessary headers and establish a connection to the Redis server using hiredis.
Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal