How to Install Redis on Windows 10?

How to Install Redis on Windows 10?

Redis is an Open Source NoSQL database. It is very popular, capable and remarkably fast In-Memory database. It stores the data in key-value pair and no doubtfully says it is a NoSQL database.

installation on windows 10

We can Install Redis on windows 10 by using two ways. They are given below.

  • Zip file
  • MSI Installer

by using zip file

Download the latest and stable release of Redis on Windows 10 Zip file (Redis-x64-3.0.504.zip) from the official GitHub site of Microsoft archive. The Download URL has been given below.

https://github.com/MicrosoftArchive/redis/releases

After download the zip file, extract it on the anyone of the location in your machine. In my system, I have downloaded and extracted on the path “C:\softwares”.

Redis File Path after extract

Now go inside on the folder “Redis-x64-3.0.504” and find the redis-server.exe file.

Redis Server EXE file

Double click the “redis-server.exe” file, then Redis server will start to run on your machine with default port 6379.

Redis server console

It is time to start the Redis Client. You can find “redis-cli.exe” file on the same folder “Redis-x64-3.0.504”.

Redis client EXE file

Double click the “redis-cli.exe” file, then Redis client will start to run on your machine to execute the Redis commands.

Redis client console

Execute the following command on the Redis client console to check the connection between Redis server and client.

PING

The console will display PONG after execute the PING command on the Redis client console.

PING and PONG

Execute the following commands to store and retrieve a new Key Pair data on the Redis server by using Redis client.

set employee John

get employee
set and get command to store the data in Redis server

by using msi installer

Download the latest and stable release of Redis on Windows 10 (Redis-x64-3.0.504.msi) MSI Installer file from the below link.

https://github.com/MicrosoftArchive/redis/releases

I have downloaded the installer file and saved into the “C:\softwares” path on my machine. You can download it into the anyone of the location on your drive.

Redis installer file

After download the installer file, double click on it and start install the Redis on Windows 10 machine.

Welcome screen of Redis Windows setup.

Welcome screen of Redis Windows setup.

Click “Next” button on the welcome screen, Accept the License agreement and click “Next” button on the installation wizard.

License Agreement wizard

Click on the check box “Add the Redis Installation folder to the PATH environment variable” on the Destination folder wizard. And then click “Next” button on this screen.

Destination folder wizard

Click “Next” on the Port number and firewall exception wizard with the default port number. If you want to change port number of Redis server, then you can change it on this wizard.

Port number and Firewall exception

Click “Next” on the Memory Limit wizard. The default Memory limit is 100 MB. If you want to set the Max Memory limit, then you can change it on this wizard.

Memory Limit

Click “Install” button on the Install Redis on Windows wizard.

Redis Installation wizard

Installation is In-Progress.

Installation In-Progress window

Click “Finish” on the Redis Installation completed wizard.

Redis Installation completed wizard

After the installation completed, Redis server will be started automatically on the Windows 10 machine. You can see the Redis server status on the “Services” screen. If the Redis service is not started automatically, you can start it manually here.

Services

Now go to the Redis installation folder and double click the “redis-cli.exe” file. I have installed the Redis on the “C:\Program Files\Redis” path.

Redis installation folder

Then Redis client will start to run on your machine to execute the Redis commands.

Redis client console

Execute the following command on the Redis client console to check the connection between Redis server and client.

PING

The console will display PONG after execute the PING command on the Redis client console.

PING and PONG

Execute the following commands to store and retrieve a new Key Pair data on the Redis server by using Redis client.

set employee John

get employee
set and get command to store the data in Redis server

Redis has been installed successfully on the Windows 10 machine by using ZIP and MSI installer.

Advertisements

What is Redis?

What is Redis?

introduction

Redis is an Open Source NoSQL database. It is very popular, capable and remarkably fast In-Memory database. It stores the data in key-value pair and no doubtfully says it is a NoSQL database.

Redis doesn’t have a query language like relational databases. It doesn’t support an Indexing. But, we can do our own indexing to store the additional data.

Redis also supports persistent storage optionally, that stores the data into the disk. Also, it works as a Master-Slave Replication. Master database syncs with Slave database. If the Master fails, the slave takes control.

where to use redis?

  • It is used to store the Stateless tokens (JWT) and invalidates the user sessions for blacklisted/expired tokens.
  • It is used to cache the search results.
  • It is used to send the notifications with the support of Publisher and Subscriber mechanism.

what is sql?

SQL is a Structured Query Language and used for structured databases with Predefined schema. Data stored in the tables and a table consists of columns. Few SQL databases are given below.

  • MySQL
  • Oracle
  • Microsoft SQL Server
  • MariaDB

What is nosql?

NoSQL don’t have structured language and it supports dynamic schema. Few NoSQL databases are given below

  • Redis and Dynomo databases are supports Key Pair value storage.
  • MongoDB and CouchDB databases are supports to store Documents by using collections.
  • Cassandra and HBase databases are used to store the huge data sets with wide column.
  • Neo4J and Infinite Graph databases are used to store locations, geometries and topological information.

SQL vs NoSQL

  1. Schema
    • SQL stores the data into tables and NoSQL stores the data into Key Pair, Document, columnar and Graph.
  2. Query
    • SQL uses structure Query language and NoSQL uses unstructured query language.
  3. Scalability
    • SQL uses vertical scaling (enabling the scalability by using same server hardware) and No SQL uses horizontal scaling (by adding additional servers)
  4. Reliability
    • SQL supports ACID properties. NoSQL doesn’t support ACID properties.
  5. ACID Properties
    • In order to ensure accuracy, completeness, and data integrity.
    • SQL databases are doesn’t compromise the ACID properties. But NoSQL compromises.

When to use SQL

  • Data have stable and defined structure.
  • ACID compliance.
  • Insanely store and retrieval.

When to use NoSQL

  • Storing a big amount of data with no defined structure.
  • Cloud storage and hosting – horizontal scaling and cost effective.
  • Quick software development and Prototype.