What is Redis

Redis is a source-available, in-memory storage, used as a distributed, in-memory key–value database, cache and message broker, with optional durability. Because it holds all data in memory and because of its design, Redis offers low-latency reads and writes, making it particularly suitable for use cases that require a cache. Redis is the most popular NoSQL database, and one of the most popular databases overall.

Source: Wikipedia

Creating the server

To create a server, we suppose that you've already created and linked an account into the panel.

At DBH we have 2 versions of Postgres you can use, you can use Postgres14 or Postgres16. Both are the same just different versions

In that case, go to DBH server and run this command:

For a free server: DBH!server create (Redis) [optional server name]

For a donator server: DBH!server create-donator (Redis) [optional name]

Connect to the database

In order to connect to your fresh created database start the server and use the following link:

redis://default:<PASSWORD>@nX.danbot.host:<port>

Fields

The link given above isn't enough for you to connect to the database, now you have to modify it to actually connect to the database.

Node

"nX" in "nX.danbot.host" is replaced with your server's node. It can be:

NodeDomain
PNode 1pnode1.danbot.host
PNode 2pnode2.danbot.host
PNode 3pnode3.danbot.host
Dono 01dono-01.danbot.host
Dono 03dono-03.danbot.host

Password

"password" can be found in the Startup tab.

Note:

Given page screenshot is an example of the password, it does not carry any important information as the server was already deleted.

Port

"port" is your server's port that can be found in the main page.

Note:

YOU MUST USE YOU'RE SERVERS PORT! IF YOU DON'T THIS WILL NOT WORK!

Final result

As soon as you finished with the link it should look like this:

redis://default:[email protected]:1125

Conclusion

Now you can deal with Redis database. To find out more about Redis visit their documentation website!

Redis Docs
Danbot Host
DanBot Hosting Docs is coded by our Dev team and updated by staff members