To connect to a Redis instance, you can either click the **+Add new data source** button on the query panel or navigate to the **[Data Sources](/docs/data-sources/overview)** page in the ToolJet dashboard.
Click on the **Test connection** button to verify if the credentials are correct and that the Redis server is accessible to the ToolJet server. Click on the **Save** button to save the data source.
Here are some examples of Redis commands and their usage. You can refer to the [Redis Official Documentation](https://redis.io/commands) for a complete list of supported commands.
### PING Command
The `PING` command is used to test the connection to Redis. If the connection is successful, the Redis server will respond with `PONG`.
```shell
PING
```
### SET Command
The `SET` command is used in Redis to assign a value to a specific key.
```shell
SET key value
```
**Example 1/2:**
When the input value contains spaces, you should encode the value before providing it as an input: