Setup/Install Redis Server on Windows 10

By | 2018-11-11T10:20:10+00:00 October 16th, 2018|Spring Boot|0 Comments

In this tutorial, I am going to show how to install Redis server in windows 10 operating system.

What is Redis?

Redis stands for Remote Dictionary Server, it is an open source in-memory key value data structure store. It supports data structures such as strings, hashes, list, set and more. Redis comes with different flavors like caching, session management, producer/consumer topic messaging and database.

Why do we use Redis ?

Redis is very fast because everything stored in in-memory, so there is no hardware involved init. Redis was written in C language, that is why it is extremely fast.

Install Redis Server:

Step 1: Download the latest Redis zip file from the official git hub location. For me it is

Step 2: Extract file in your favorite location.

Step 3: It will come with 2 different folders, one is for 32bit and another one is 64bit. Based on your operating system.

Step 4: Goto 64bit there you can find below files

Install Redis server on windows 10

Step 4: Double click on redis-server.exe file, there you can see the redis-server startup and wait for connecting to clients like below.

Redis server on windows 10 2

Step 5: Now open redis-cli.exe file to redis command line interface.

Install Redis server on windows 10 3

As this acts as a redis client, as soon as we open this cli, we can see the client connected message in redis server like below.

Install Redis server on windows 10 4

Now we can say that the redis server and client connected successfully. Now let’s try to pass some messages from client to redis server.

As we discussed redis is an in-memory key-value data structure store. So that the data in redis represents as key-value pairs.

Inserting/Reading data into redis server:

Inserting data in redis:

Inserting data into redis server
redis> set "name" "chandra shekhar"

Reading data from redis:

reading data with key
redis> get "name"
"chandra shekhar"
Install Redis server on windows 10 5

Producer/Consumer messages with redis:

Open two individual redis-clis, make one cli as producer and another one as a consumer.

Syntax for Subscribe:

subscribing to java_books channel
subscribe "java_books"

subscribe is a keyword is used to subscribe a channel, where the channel is java_books.

Syntax for Publish:

publishing message to java_books channel
publish "java-books" "java8 in action"

Like subscribe, publish is also a keyword to publish a message on a specific topic. On the above example, I just publish my message like “java8 in action” on “java-books” subscriber.

Install Redis server on windows 10 Final Output


Redis Document

Happy Learning 🙂

About the Author:

Hi Folks, you have reach this so far, that shows you like what you are learning. Then why don't you support us to improve for bettor tutorials by leaving your valuable comments and why not you keep in touch with us for latest updates on your favorite blog @ facebook , twitter , Or Google+ ,

Leave A Comment