Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/create/cloudrun/index-cloudrun.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ For a limited time, use **TIGER200** to get **$200** credits on Redis Enterprise
:::


![Registering for Redis Cloud](images/rediscloud_endpoint.png "image_tooltip")


### Step 2. Install Google Cloud CLI

Expand Down
8 changes: 1 addition & 7 deletions docs/create/heroku/herokugo/index-herokugo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ For a limited time, use **TIGER200** to get **$200** credits on Redis Enterprise

![recloud](try-free.png)

[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database as shown below:


![heroku](launch_database.png)

The database endpoint URL is unique so will be different in your case. Save the URL details, port and password for future reference.

[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database. Once you create the database, you will be provisioned with a unique database endpoint URL, port and password. Save these for future reference.


### Step 2. Create a Heroku account
Expand Down
7 changes: 1 addition & 6 deletions docs/create/heroku/herokujava/index-herokujava.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ For a limited time, use **TIGER200** to get **$200** credits on Redis Enterprise

![recloud](try-free.png)

[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database as shown below:


![heroku](launch_database.png)

The database endpoint URL is unique for all and hence might be different in your case. Save it for future reference.
[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database. Once you create the database, you will be provisioned with a unique database endpoint URL, port and password. Save these for future reference.



Expand Down
8 changes: 1 addition & 7 deletions docs/create/heroku/herokunodejs/index-herokunodejs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ For a limited time, use **TIGER200** to get **$200** credits on Redis Enterprise

![recloud](try-free.png)

[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database as shown below:


![heroku](launch_database.png)

The database endpoint URL is unique for all and hence might be different in your case. Save it for future reference.

[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database. Once you create the database, you will be provisioned with a unique database endpoint URL, port and password. Save these for future reference.


### Step 2. Create a Heroku account
Expand Down
9 changes: 1 addition & 8 deletions docs/create/heroku/herokupython/index-herokupython.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ For a limited time, use **TIGER200** to get **$200** credits on Redis Enterprise

![recloud](try-free.png)

[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database as shown below:


![heroku](launch_database.png)

The database endpoint URL is unique for all and hence might be different in your case. Save it for future reference.


[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database. Once you create the database, you will be provisioned with a unique database endpoint URL, port and password. Save these for future reference.

### Step 2. Create a Heroku account

Expand Down
11 changes: 1 addition & 10 deletions docs/create/heroku/herokuruby/index-herokuruby.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,12 @@ For a limited time, use **TIGER200** to get **$200** credits on Redis Enterprise

![recloud](try-free.png)

[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database as shown below:


![heroku](launch_database.png)

The database endpoint URL is unique so will be different in your case. Save it for future reference.


[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database. Once you create the database, you will be provisioned with a unique database endpoint URL, port and password. Save these for future reference.

### Step 2. Create a Heroku account

If you are using Heroku for the first time, create your new Heroku account [through this link](https://signup.heroku.com/login).

![heroku](create_heroku.png)


### Step 3. Install the Heroku CLI on your system

Expand Down
8 changes: 1 addition & 7 deletions docs/create/heroku/portal/index-heroku.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ For a limited time, use **TIGER200** to get **$200** credits on Redis Enterprise

![recloud](tryfree.png)

[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database as shown below:


![heroku](launch_database.png)

The database endpoint URL is unique for all and hence might be different in your case. Save it for future reference.

[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database. Once you create the database, you will be provisioned with a unique database endpoint URL, port and password. Save these for future reference.

#### Step 2. Create a Heroku account

Expand Down
8 changes: 1 addition & 7 deletions docs/create/heroku/ratelimiting-go/index-ratelimitinggo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ For a limited time, use **TIGER200** to get **$200** credits on Redis Enterprise

![recloud](images/try-free.png)

[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database as shown below:


![heroku](images/launch_database.png)

The database endpoint URL is unique for all and hence might be different in your case. Save it for future reference.

[Follow this link to create a Redis Enterprise Cloud](/create/rediscloud) subscription and database. Once you create the database, you will be provisioned with a unique database endpoint URL, port and password. Save these for future reference.


### Step 2. Create a Heroku account
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ For a limited time, use **TIGER200** to get **$200** credits on Redis Enterprise
:::


![rediscloud](recloud_search.png)

![rediscloud](details_database.png)

### Step 2. Install Netlify CLI

Expand Down
Binary file added docs/create/vercel/images/details_database.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/create/vercel/index-vercel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ For a limited time, use **TIGER200** to get **$200** credits on Redis Enterprise



![alt_text](images/rediscloud_endpoint.png "image_tooltip")
![alt_text](images/details_database.png "image_tooltip")


### Step 2. Install Vercel CLI
Expand Down Expand Up @@ -135,7 +135,7 @@ Let us first set up environment variables.
vercel env add
Vercel CLI 23.1.2
? What's the name of the variable? REDIS_ENDPOINT_URI
? What's the value of REDIS_ENDPOINT_URI? redis-XXXX.c264.ap-south-1-1.ec2.cloud.redislabs.com:XXX
? What's the value of REDIS_ENDPOINT_URI? redis-XXXX.c110-qa.us-east-1-1-1.ec2.qa-cloud.redislabs.com:XXX

```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,4 @@ Define inputs for the loaded model.
</div>



21 changes: 3 additions & 18 deletions docs/howtos/redisbloom/index-redisbloom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,13 @@ You will be provided with Public endpoint URL and "Redis Stack" as the type of d

![verify database](images/details_database.png)

### Step 4. Install RedisInsight
### Step 4. Using 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 `brew` package installed in your Mac system.


```bash
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!
```

Go to Applications and click "RedisInsight Preview" to bring up the Redis Desktop GUI tool.
[Follow this link](/explore/redisinsightv2/getting-started) to install RedisInsight v2 on your local system.
Assuming that you already have RedisInsight v2 installed on your MacOS, you can browse through the Applications and click "RedisInsight-v2" to bring up the Redis Desktop GUI tool.

### Step 5. Add Redis database

Expand Down
20 changes: 2 additions & 18 deletions docs/howtos/redisearch/index-redisearch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,11 @@ You will be provided with Public endpoint URL and "Redis Stack" as the type of d

![verify database](images/details_database.png)

### Step 4. Install RedisInsight
### Step 4. Using 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 the RedisInsight GUI tool up and running. Ensure that you have `brew` package installed in your Mac system.


```bash
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!
```

Go to Applications and click "RedisInsight-v2" to bring up the Redis Desktop GUI tool.
Assuming that you already have RedisInsight v2 installed on your MacOS, you can browse through the Applications and click "RedisInsight-v2" to bring up the Redis Desktop GUI tool.


### Step 5. Add Redis database
Expand Down
28 changes: 6 additions & 22 deletions docs/howtos/redisjson/getting-started/index-gettingstarted.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,46 +40,30 @@ You will be provided with Public endpoint URL and "Redis Stack" as the type of d

![verify database](details_database.png)

### Step 4. Install RedisInsight
### Step 4. Using 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 `brew` package installed in your Mac system.
[Follow this link](/explore/redisinsightv2/getting-started) to install RedisInsight v2 on your local system.
Assuming that you already have RedisInsight v2 installed on your MacOS, you can browse through the Applications and click "RedisInsight-v2" to bring up the Redis Desktop GUI tool.


```bash
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!
```

Go to Applications and click "RedisInsight-v2" to bring up the Redis Desktop GUI tool.

### Step 6. Enter Redis Enterprise Cloud details
### Step 5. Enter Redis Enterprise Cloud details

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


![access redisinsight](database_creds.png)


### Step 7. Verify the database under RedisInsight dashboard
### Step 6. Verify the database under RedisInsight dashboard


![database details](database_details.png)





### Step 6. Getting Started with RedisJSON
### Step 7. Getting Started with RedisJSON


The following steps use some basic RedisJSON commands. You can run them from the Redis command-line interface (redis-cli) or use the CLI available in RedisInsight.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 64 additions & 25 deletions docs/howtos/redisjson/using-python/index-usingpython.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,62 @@ slug: /howtos/redisjson/using-python

[RedisJSON](https://oss.redis.com/redisjson/) is a source-available Redis module that lets you store, manipulate, and query JSON documents in Redis. The standard Redis Python client (v4.0 or greater) supports all of the features of RedisJSON, and in this tutorial, we'll see how to get started with them.

## Getting started with RedisJSON
### Step 1. Create a free Cloud account

To run the examples below, you'll need to ensure that you have an instance of Redis that includes RedisJSON. If you're developing locally, you can use Docker for this:
Create your free <a href="https://redis.com/try-free/" target="_blank" rel="noopener">Redis Enterprise Cloud account</a>. Once you click on “Get Started”, you will receive an email with a link to activate your account and complete your signup process.

```bash
docker run -p 6379:6379 --name redis-redisjson redislabs/rejson:latest
```
:::info TIP
For a limited time, use **TIGER200** to get **$200** credits on Redis Enterprise Cloud and try all the advanced capabilities!

## Verify that the RedisJSON module is loaded
:tada: [Click here to sign up](https://redis.com/try-free)

Connect to Redis using `redis-cli`, and run the `info modules` command:
:::

```bash
redis-cli
127.0.0.1:6379> info modules
# Modules
module:name=ReJSON,ver=20004,api=1,filters=0,usedby=[],using=[],options=[]
127.0.0.1:6379>
```
### Step 2. Create Your database

Ensure that you're running RedisJSON v2.0 or greater (here indicated as `20004`).
Choose your preferred cloud vendor. Select the region and then click "Let's start free" to create your free database automatically.

## Load the latest version of `redis-py`
:::info TIP
If you want to create a custom database with your preferred name and type of redis,
click "Create a custom database" option shown in the image.
:::

You'll need `redis-py` version 4.0 or later. If you're using `pipenv`, you can install the client library like so:
![create database ](images/select_cloud_vendor.png)

```bash
pipenv install redis
```

Then you can run `pipenv graph` to make sure you're running the latest version of the client:
### Step 3. Verify the database details

You will be provided with Public endpoint URL and "Redis Stack" as the type of database with the list of modules that comes by default.



![verify database](images/details_database.png)

### Step 4. Using 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.

[Follow this link](/explore/redisinsightv2/getting-started) to install RedisInsight v2 on your local system.
Assuming that you already have RedisInsight v2 installed on your MacOS, you can browse through the Applications and click "RedisInsight-v2" to bring up the Redis Desktop GUI tool.

```
$ pipenv graph
redis==4.0.2
```

### Step 5. Add Redis database

![access redisinsight](images/add_database.png)

### Step 6. Enter Redis Enterprise Cloud details

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


![access redisinsight](images/database_creds.png)


### Step 7. Verify the database under RedisInsight dashboard


![database details](images/database_details.png)

## Storing JSON in Redis

Expand All @@ -56,6 +76,25 @@ Let's consider a simple JSON document structure representing a user:
}
```

## Installing Redis

```
$ pip3 install redis
Collecting redis
Downloading redis-4.2.0-py3-none-any.whl (225 kB)
Collecting async-timeout>=4.0.2
Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting typing-extensions
Downloading typing_extensions-4.1.1-py3-none-any.whl (26 kB)
..
Requirement already satisfied: packaging>=20.4 in /usr/lib/python3.8/site-packages (from redis) (20.4)
Collecting wrapt<2,>=1.10
Installing collected packages: async-timeout, typing-extensions, wrapt, deprecated, redis
Running setup.py install for wrapt ... done
Successfully installed async-timeout-4.0.2 deprecated-1.2.13 redis-4.2.0 typing-extensions-4.1.1 wrapt-1.14.0
```


Here's the Python code to store this document in Redis using RedisJSON:

```python
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/howtos/redisjson/using-redisinsight/image
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading