Hi Guys, Welcome to Proto Coders Point. This Article is on how to download and install redis on windows, I found out redis windows installer a .msi file by which, in just one click “install redis”.
Video Guide
What is Redis
Redis stands for “Remote Directory Server”, It’s an open source & fastest in-memory data storage CLI + Server, basically we can store data in redis in key-value pair, and is used by many developers to manage database, cache message broker & streaming engine.
When should we use Redis
Most of the time redis is used as an caching layer, As it’s an in-memory DB, That means, It keep the given data in-memory & is much faster if compared with MYSQL or NOSQL (Mongodb) query executions.
Redis can’t be used to store large data then 1/3 of RAM size, So it’s better not to use it to store huge data collections.
Can data Stored in Redis get lost
Yes, Data stored in Redis can get deleted but only when server instance is rebooted or terminated and in local PC if you shutdown you system.
Learn more about Redis on Official site
How to Install Redis on Windows
Below are the steps to install redis.
Step 1: Download redis .msi installer file
Offically, Redis not provide any direct installer file to install it on windows operating system but Microsoft has build a installer version of redis by which windows users can easily install redis on windows with just one click.
From above download link download .msi file.
Step 2: Install redis using .msi installer
Start the installer by click on Redis-x64-3.0.504.msi
Step 3: Start using Redis using CMD
On Windows, When you start your system, redis-server.exe will automatically get started and will be running in background.
To get connected to redis server and store some data in it, you can make use of redis-cli.
Just open CMD prompt and type “redis-cli”.
Hope, This easiest method to install redis on win10 successfully worked for you.
How to Install Redis on Ubuntu
To Install latest stable version on Redis all you need to do is run below provided commands into Ubuntu/Linux Terminal one by one.
sudo apt install lsb-release
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update
sudo apt-get install redis
OR
If above Steps don’t work, Then you can Install Redis into Ubuntu system using Snapcraft
Install Redis via snap:
sudo snap install redis