Introduction to Redis

Per the official description in the Redis docs...

"Redis is an open source (BSD licensed), in-memory data structure store, used as database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster."

So essentially Redis is a key value store, but can be utilized in many creative ways due to supporting the aforementioned data stuctures. This guide will discuss some ways to leverage Redis.

Setting up Redis and node_redis

Since the goal of this guide is not to set up Redis, but rather to use it. I'll leave it to the official docs on how to get Redis and node_redis setup.

Installing Redis

NOTE: If you are on a Mac, I HIGHLY recommend installing Redis via homebrew. This guide will be much more useful for you.

Installing node_redis