Using #redis with Node JS
▻https://hackernoon.com/using-redis-with-node-js-8d87a48c5dd7?source=rss----3a8144eabfe3---4
What is RedisRedis is an in-memory data structure store which can be used as a #database, a cache and a message broker. Redis supports different data structures such as strings, lists, sets, hashes, bitmaps and etc. . Simply Redis uses you RAM to store data which is very fast, however if you reboot your server the values are gone, unless you enable Redis persistence. Good news by default Redis enables persistence mechanism for you (you can disable or configure persistence according to your needs.)Install Redis (Linux)Refer: ▻https://redis.io/downloadDownload, extract and compile Redis with:$ wget ▻http://download.redis.io/releases/redis-4.0.9.tar.gz$ tar xzf redis-4.0.9.tar.gz$ cd redis-4.0.9$ makeThe binaries that are now compiled are available in the src directory. Run Redis with:$ (...)