Skip to main content

Introduction to Redis Stack


Profile picture for Ajeet Raina
Author:
Ajeet Raina, Former Developer Growth Manager at Redis

redis stack

Redis Stack is an extension of Redis that adds modern data models and processing engines to provide a complete developer experience. Redis Stack provides a simple and seamless way to access different data models such as full-text search, document store, graph, time series, and probabilistic data structures enabling developers to build any real-time data application.

Redis OSS vs. Redis Stack

In addition to all of the features of OSS Redis, Redis Stack supports:

  • Queryable JSON documents
  • Full-text search
  • Time series data (ingestion & querying)
  • Graph data models with the Cypher query language
  • Probabilistic data structures

Redis Stack License

Redis Stack is made up of several components, licensed as follows:

Which client libraries support Redis Stack?

The following core client libraries support Redis Stack:

The Redis OM client libraries let you use the document modeling, indexing, and querying capabilities of Redis Stack much like the way you’d use an ORM. The following Redis OM libraries support Redis Stack:

Getting Started

Using Redis Enterprise Cloud

Step 1. Create free cloud account

Create your free Redis Enterprise Cloud account. Once you click on “Get Started”, you will receive an email with a link to activate your account and complete your signup process.

tip

For a limited time, use TIGER200 to get $200 credits on Redis Enterprise Cloud and try all the advanced capabilities!

🎉 Click here to sign up

Step 2. Create Your database

For the cloud provider, select your preferred cloud. Select the region of your choice and then click "Let's start free".

tip

If you want to create a custom database with your preferred name and type of Redis, click "Create a custom database".

create database

Step 3. Listing the database details

Once fully activated, you will see the database endpoints as shown below:

verify database

Step 4. Connecting to the database via RedisInsight

RedisInsight is a visual tool that lets you do both GUI- and CLI-based interactions with your Redis database, and so much more when developing your Redis based application. It is a fully-featured pure Desktop GUI client that provides capabilities to design, develop and optimize your Redis application. It works with any cloud provider as long as you run it on a host with network access to your cloud-based Redis server. It makes it easy to discover cloud databases and configure connection details with a single click. It allows you to automatically add Redis Enterprise Software and Redis Enterprise Cloud databases.

You can install Redis Stack on your local system to get RedisInsight GUI tool up and running. Ensure that you have the brew package installed in your Mac system.

 brew tap redis-stack/redis-stack
brew install --cask redis-stack
 ==> Installing Cask redis-stack-redisinsight
==> Moving App 'RedisInsight-preview.app' to '/Applications/RedisInsight-preview.app'
🍺 redis-stack-redisinsight was successfully installed!
==> Installing Cask redis-stack
🍺 redis-stack was successfully installed!

You can easily find the Applications folder on your Mac with Finder. Search "RedisInsight-v2" and click the icon to bring up the Redis Desktop GUI tool.

Step 5. Add Redis database

access redisinsight

Step 6. Enter Redis Enterprise Cloud details

Add the Redis Enterprise cloud database endpoint, port and password.

access redisinsight

Step 7. Verify the database under RedisInsight dashboard

database details

Step 8. Try Redis Stack tutorials

In this tutorial, we will go through an example of a bike shop. We will show the different capabilities of Redis Stack.

Choose "Redis Stack" from the left sidebar menu.

access json workbench

Step 9. Store and Manage JSON

Let's examine the query for creating a single bike. Click "Create a bike" button:

access json keys

It will display a JSON.SET command with model, brand, price, type, specs and description details. The bikes:1 is the name of the Redis key that the JSON will be stored in.

Step 10. Accessing part of a stored JSON document

Click "Get specific fields" to access parts of a stored JSON document as shown in the following image:

access json keys

Next Steps

Storing and querying JSON documents

Follow this tutorial to learn how to store and query JSON documents using Redis Stack.

Learn how to perform full-text search using Redis Stack.

Probabilistic data structures

Follow this tutorial to learn how to implement low latency and compact Probabilistic data structures using Redis Stack.

Storing and querying time series data

Learn how to store and query time series data using Redis Stack.