Redis is used as data storage in software engineering , Redis storage is faster than any database storage , because Redis store data In memory and this storage is working as cache storage . But Redis storage is not persistence , once system shutdown all memory will be gone . Now most be thinking than how it is good .It is great if we use Redis with Node JS,
mysql, Mongodb
Solution for persistency :We need to create a mysql table or mongodb collection in our database which holds all cache data inside that table or collection , so if system goes down we have all cache details, once system will be up our script or application will again sync whole cache from that table to redis server.
Installation of Redis On MAC/Ubuntu
On mac of Linux you can install in two way either by manual process if you want to install manually follow this Link or to install and suppose you are not willing to to install , because you are lazy😆 , because i prefer lazy way of installation , so you can follow below steps
and finally you can start server by command
If above output will show means your Redis is running properly
to test your On Local use below commands
On Linux/Ubuntu
sudo apt-get install redis-server
On Mac
brew install redis
redis-server
If above output will show means your Redis is running properly
to test your On Local use below commands

