Redis
Last updated
Was this helpful?
Last updated
Was this helpful?
UI Bakery allows you to easily connect to a Redis database with no need for additional layers like APIs or third-party services.
If your database is hosted behind a Firewall, you need to add our to the Firewall whitelist.
On the Data sources page, click Connect, and select Redis in the Data sources list.
Specify the required credentials:
Host
Port
Password (if your Redis instance is in the )
Database number
Click Test connection to check whether the connection can be established, and then click Connect Datasource to complete the setup.
It is also possible to send multiple commands at once as an array of arrays:
UI Bakery also converts all input non-string command arguments to strings except for the undefined
and null
values - they are converted to empty strings.
For example, if you execute ['SET', 'number', 42]
followed by ['GET', 'number']
, the result string will be "42"
.
If you want to convert the value back to a number, you should use Number({{data}})
in the result mapper.
Once you have established the connection between UI Bakery and Redis, you can manage its data. UI Bakery allows executing most of the . A command should be sent as an array where the first element is a string representing Redis command type, and the other elements of an array are command arguments, for example:
For more Redis command examples, check out this page