Redis is a high-performance, non-relational key-value database. It stores data in memory, which enables extremely fast query processing. Unlike relational databases, Redis does not use traditional databases and tables; instead, data is organized into keyspaces, and values can have different structures and types, such as strings, lists, sets, and hash tables.
Redis is commonly used for:
When creating a cluster, you can choose the Redis version: 7 or 8.1.
In your control panel, you can manage PostgreSQL users and their privileges.
To update the privileges of an existing user:
Privilege |
Description |
|
Read data from the database. |
|
Write and modify data. |
|
Run administrative commands (e.g., manage configuration, flush database). |
|
Work with bit arrays. |
|
Use blocking commands (e.g., |
|
Manage connections and connection settings. |
|
Access potentially dangerous commands (e.g., |
|
Work with geospatial data (e.g., |
|
Work with hash tables. |
|
Work with the |
|
Use low-latency commands. |
|
Get key lists and key metadata. |
|
Work with lists. |
|
Use the publish/subscribe mechanism ( |
|
Execute Lua scripts in Redis. |
|
Work with sets. |
|
Work with sorted sets. |
|
Use commands that may take longer to execute. |
|
Work with data streams ( |
|
Work with strings. |
|
Use transactions ( |
You can change the user password:
You can change database settings to optimize its performance.
By default, the database is created with the parameters that are suitable for most tasks and will ensure the performance of the selected configuration. However, if your project requires specific settings, you can change them as you wish.
Be careful and change parameters only if you are sure of their purpose. Incorrect configuration can negatively affect the operation of the database and its performance.
Parameter |
Valid Values |
Default Value |
— |
0 0 0 |
|
— |
33554432 8388608 60 |
|
— |
allkeys-lru |
|
0–600000000 |
10000 |
|
0–4294967296 |
128 |
|
0–3600000000 |
0 |
|
0–2147483647 |
16 |
|
— |
900 1 |
|
On/Off |
On |
|
— |
everysec |
|
0–3600 |
300 |
|
— |
— |
To work with a Redis cluster in DBaaS, install the redis-cli
utility. It is included in the Redis package and can be installed via package managers:
sudo apt install redis-tools
brew install redis
sudo pacman -S redis
sudo yum install redis
After installation, check the client version:
redis-cli -v
There are two ways to connect to a Redis cluster:
You can copy the connection command from:
the Dashboard tab:
the Connection tab:
To export Redis data, use the redis-dump-go
utility, available for different architectures. Download the binary for your architecture from the official repository.
To create a dump, run:
REDISDUMPGO_AUTH='password' ./redis-dump-go -host <cluster-ip> -port 6379 -user default > redis-dump.txt
Here, REDISDUMPGO_AUTH
is the password for cluster access.
To import data, use redis-cli
in --pipe
mode, which supports loading large datasets:
redis-cli -h <cluster-ip> -p 6379 --user default --pass 'password' --pipe < redis-dump.txt