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

What is Redis?

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

Why do we use Redis?

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

Install Redis Server:

Footstep 1: Download the latest Redis cypher file from the official git hub location. For me information technology is redis-2.4.5-win32-win64.zip.

Stride 2: Extract redis-2.4.5-win32-win64.nix file in your preferred location.

Step three: It will come with two different folders, one is for 32bit, and some other ane is for 64bit based on your operating system.

Step 4: Goto 64bit at that place you can find the below files.

Install Redis server on windows 10

Footstep iv: Double click on the redis-server.exe file, in that location y'all can meet the redis-server startup and wait for connecting to clients like below.

Redis server on windows 10 2

Pace 5: Now open up the redis-cli.exe file to the redis command-line interface.

Install Redis server on windows 10 3

Equally this acts as a redis client, as shortly as nosotros open up 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'due south try to laissez passer some messages from the client to the redis server.

Equally we discussed redis is an in-retention key-value data structure store so that the information in redis represents equally central-value pairs.

Inserting/Reading data into redis server:

Inserting information in redis:

Adding data into the redis server
                    redis 127.0.0.i:6379> set "proper noun" "chandra shekhar" OK                  

Reading information from redis:

                    redis 127.0.0.i:6379> get "name" "chandra shekhar"                  
Install Redis server on windows 10 5

Producer/Consumer messages with redis:

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

The syntax for Subscribe:

subscribing to java-books channel
                    subscribe "java-books"                  

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

The syntax for Publish:

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

Like subscribe, publish is likewise a keyword to mail a message on a specific topic. On the above instance, I publish my message like "java8 in action" on "java-books" subscribers.

Install Redis server on windows 10 Final Output

Reference:

  • Redis Document

Happy Learning 🙂

Share a discussion.