docs/versioned_docs/version-2.50.0-LTS/data-sources/redis.md
ToolJet enables you to execute Redis commands on your Redis instances.
<div style={{paddingTop:'24px'}}>To establish a connection with the Redis data source, you can either click on the + Add new Data source button located on the query panel or navigate to the Data Sources page from the ToolJet dashboard and choose Redis as the data source.
To connect ToolJet with Redis, you need to provide the following connection details:
Depending on the TLS certificate option selected, you may need to provide additional information:
Here are some examples of Redis commands and their usage. You can refer to the Redis Official Documentation for a complete list of supported commands.
The PING command is used to test the connection to Redis. If the connection is successful, the Redis server will respond with PONG.
PING
The SET command is used in Redis to assign a value to a specific key.
SET key value
When the input value contains spaces, you should encode the value before providing it as an input:
SET products {{encodeURI('John Doe')}}
The GET command is used in Redis to retrieve the value associated with a specific key.
GET key
To retrieve a value that was previously encoded while setting, you can use transformations.
GET products
decodeURI:return JSON.parse(decodeURI(data));