Sign In
Sign In

Redis Management

Updated on 03 October 2025

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:

  • Data caching
  • Session storage
  • Queue management
  • Message passing between services

When creating a cluster, you can choose the Redis version: 7 or 8.1.

Users and Privileges

In your control panel, you can manage PostgreSQL users and their privileges.

Creating Users

  1. Go to the Databases section and click on the cluster.
  2. Open the Users tab and click Add.

0eb14034 92a4 4491 Bcb7 F46856fa8a96

  1. Set the username and password:
    • Username: 3–64 characters. Letters, numbers, and special characters are allowed.
    • Password: 8–30 characters. Letters, numbers, and special characters are allowed.
  2. (Optional) Configure the user’s privileges. You can also leave the default parameters and change them later at any time.
  3. Click Create.

Modifying Privileges

To update the privileges of an existing user:

  1. Go to the Databases section and click on the cluster.
  2. Open the Users tab.
  3. Click the three dots next to the user.
  4. Select Privileges.

863e48ab 8109 4c59 Bd19 F384f1c403ea

  1. Choose the required privileges. You can grant access to a specific database or grant the same privileges for all databases by enabling Identical for all databases in the top right.

Available Privileges

Privilege

Description

READ

Read data from the database.

WRITE

Write and modify data.

ADMIN

Run administrative commands (e.g., manage configuration, flush database).

BITMAP

Work with bit arrays.

BLOCKING

Use blocking commands (e.g., BLPOP, BRPOP).

CONNECTION

Manage connections and connection settings.

DANGEROUS

Access potentially dangerous commands (e.g., FLUSHALL, MIGRATE).

GEO

Work with geospatial data (e.g., GEOADD, GEORADIUS).

HASH

Work with hash tables.

HYPERLOGLOG

Work with the HyperLogLog data type.

FAST

Use low-latency commands.

KEYSPACE

Get key lists and key metadata.

LIST

Work with lists.

PUBSUB

Use the publish/subscribe mechanism (PUBLISH, SUBSCRIBE).

SCRIPTING

Execute Lua scripts in Redis.

SET

Work with sets.

SORTEDSET

Work with sorted sets.

SLOW

Use commands that may take longer to execute.

STREAM

Work with data streams (XADD, XREAD).

STRING

Work with strings.

TRANSACTION

Use transactions (MULTI, EXEC).

Changing User Password

You can change the user password:

  1. Go to the Database section and click on the cluster.
  2. Go to the Users tab.
  3. Click the three dots next to the user.
  4. Select Change password.

F2089fb1 5c48 447d B944 C8453e9ffff0

  1. Enter a new value and save changes.

Database Parameters

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.

Changing Parameters

  1. Go to the Databases section and click on the cluster.
  2. Go to the Configuration tab.
  3. Click Modify parameters next to Database parameters.

D2c0f05b F492 46d0 A55c 764ba61d392d

  1. Adjust the parameters. To read more about each parameter, click Open description next to it.

95fa9cb4 Aee3 432c A932 Aefc6f8d9a7d

  1. Click Apply at the bottom of the page.

Parameters List

Parameter

Valid Values

Default Value

client-output-buffer-limit normal

0 0 0

client-output-buffer-limit pubsub

33554432 8388608 60

maxmemory-policy

allkeys-lru

slowlog-log-slower-than

0–600000000

10000

slowlog-max-len

0–4294967296

128

timeout

0–3600000000

0

databases

0–2147483647

16

save

900 1

appendonly

On/Off

On

appendfsync

everysec

tcp-keepalive

0–3600

300

notify-keyspace-events

Connecting to the Database

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:

  • Ubuntu/Debian
sudo apt install redis-tools
  • macOS
brew install redis
  • Arch Linux
sudo pacman -S redis
  • CentOS/RHEL
sudo yum install redis

After installation, check the client version:

redis-cli -v

There are two ways to connect to a Redis cluster:

  • via public IP;
  • via private IP.

You can copy the connection command from:

  • the Dashboard tab:

C5808e03 025d 4c98 B004 9d8d5be1935a

  • the Connection tab:

5b57323e 447a 45a3 A3c1 09e1d9bd6962

Creating a Dump

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.

Importing a Dump

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
Was this page helpful?
Updated on 03 October 2025

Do you have questions,
comments, or concerns?

Our professionals are available to assist you at any moment,
whether you need help or are just unsure of where to start.
Email us
Hostman's Support